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:
@@ -972,6 +972,11 @@ class CustomOptionsDialog(QDialog):
|
||||
ConfigManager.set("check_beta_updates", beta_enabled)
|
||||
logger.info(f"Saved beta updates setting: {beta_enabled}")
|
||||
|
||||
# Save app update checker setting
|
||||
app_updates_enabled = self.updater_tab.get_app_update_checker_setting()
|
||||
ConfigManager.set("check_app_updates", app_updates_enabled)
|
||||
logger.info(f"Saved app updates checker setting: {app_updates_enabled}")
|
||||
|
||||
except Exception as e:
|
||||
logger.exception(f"Error saving auto-update settings: {e}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user