Refine verified update notices and Windows installation lifecycle

This commit is contained in:
2026-11-26 19:09:17 -06:00
parent f9fa7c258d
commit 2e93b7587d
19 changed files with 744 additions and 81 deletions

View File

@@ -114,6 +114,7 @@ class Settings:
log_level: str = "INFO"
update_startup: bool = False
update_interval: int = 0
update_notifications: bool = True
targets: list[Target] = field(default_factory=list)
@classmethod
@@ -158,6 +159,8 @@ class Settings:
cfg.update_startup = False
if type(cfg.update_interval) is not int or cfg.update_interval not in (0, 4, 12, 24, 168):
cfg.update_interval = 0
if not isinstance(cfg.update_notifications, bool):
cfg.update_notifications = True
cfg.targets = [Target.from_dict(item) for item in cfg.targets if isinstance(item, dict)] if isinstance(cfg.targets, list) else []
cfg.targets = list({target.identifier: target for target in cfg.targets}.values())
legacy_tray = source.get("tray_mode")