Add opt-in beta update UI and checks
Introduce an opt-in beta updates feature: add a styled "Receive Beta Updates" checkbox in the Updater UI with i18n strings, load/save logic in the custom options dialog, and a default config key (check_beta_updates=false). Add _fetch_github_beta_version to the update thread to query GitHub releases (selecting the highest tag) and emit update_available for newer beta builds. When beta checking is enabled, the thread will perform the GitHub beta check and return early to avoid conflicting with the PyPI check. This enables users to opt into preview releases safely.
This commit is contained in:
@@ -966,6 +966,12 @@ class CustomOptionsDialog(QDialog):
|
||||
logger.info(f"Saving auto-update settings: enabled={enabled}, frequency={frequency}")
|
||||
result = update_auto_update_settings(enabled, frequency)
|
||||
logger.info(f"Auto-update settings save result: {result}")
|
||||
|
||||
# Save beta update setting
|
||||
beta_enabled = self.updater_tab.get_beta_update_setting()
|
||||
ConfigManager.set("check_beta_updates", beta_enabled)
|
||||
logger.info(f"Saved beta updates setting: {beta_enabled}")
|
||||
|
||||
except Exception as e:
|
||||
logger.exception(f"Error saving auto-update settings: {e}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user