Refine verified update notices and Windows installation lifecycle
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user