Release SyncVito 1.0.10
This commit is contained in:
1 parent
4efc1efa18
commit
7098fa1c0c
9 files changed
+317
-20
No files matched your search
@@ -137,6 +137,7 @@ class AppSettings:
|
||||
font_weight: str = "regular"
|
||||
ui_scale: int = 100
|
||||
paused: bool = False
|
||||
pending_queue: list[str] = field(default_factory=list)
|
||||
check_updates_on_start: bool = True
|
||||
last_update_check: str | None = None
|
||||
|
||||
@@ -148,6 +149,7 @@ class AppSettings:
|
||||
self.font_weight = "regular"
|
||||
if not self.font_family.strip():
|
||||
self.font_family = "Segoe UI Variable"
|
||||
self.pending_queue = [str(item) for item in self.pending_queue if str(item).strip()]
|
||||
|
||||
def to_dict(self) -> dict[str, Any]:
|
||||
"""Serialisiert die Einstellungen."""
|
||||
@@ -163,6 +165,7 @@ class AppSettings:
|
||||
font_weight=str(data.get("font_weight", "regular")),
|
||||
ui_scale=int(data.get("ui_scale", 100)),
|
||||
paused=bool(data.get("paused", False)),
|
||||
pending_queue=[str(item) for item in data.get("pending_queue", []) if str(item).strip()],
|
||||
check_updates_on_start=bool(data.get("check_updates_on_start", True)),
|
||||
last_update_check=data.get("last_update_check"),
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user