Add check_app_updates setting and UI

Introduce a new "check_app_updates" configuration (default: true) to allow users to enable/disable automatic YTSage update checks. Adds a styled checkbox to the Updater tab with getter, loads the setting (defaults to enabled for older configs), and saves it from the custom options dialog. The main update check now respects this setting and will skip checking when disabled. Also include English localization entries for the new UI strings.
This commit is contained in:
oop7
2026-03-19 14:45:56 +02:00
parent 67dc1c83f2
commit 4a16aad2ac
6 changed files with 50 additions and 1 deletions
+4
View File
@@ -958,6 +958,10 @@ class YTSageApp(QMainWindow, FormatTableMixin, VideoInfoMixin, AnalysisMixin):
def check_for_updates(self) -> None:
"""Starts the update check in a background thread."""
if ConfigManager.get("check_app_updates") is False:
logger.info("App version checker is disabled in settings.")
return
self.update_thread = UpdateCheckThread(self.version)
self.update_thread.update_available.connect(self.show_update_dialog)
self.update_thread.start()