mirror of
https://git.srhtnin.garden/sarah/SaraSuite.git
synced 2026-10-15 10:33:17 +02:00
Settings dialog, per-program install defaults, Options after install; Update only when needed
This commit is contained in:
1 parent
7018d57dbc
commit
08c9071b48
8 files changed
+360
-30
No files matched your search
@@ -7,7 +7,7 @@ picked for one Sara program looks the same in all of them.
|
||||
|
||||
import os
|
||||
import sys
|
||||
from dataclasses import asdict, dataclass
|
||||
from dataclasses import asdict, dataclass, field
|
||||
from pathlib import Path
|
||||
|
||||
import flet as ft
|
||||
@@ -106,6 +106,11 @@ class AppConfig:
|
||||
# Where the Sara repos live (Gitea on SpineS); manifests
|
||||
# use it as {GitHost}.
|
||||
GitHost: str = "https://git.srhtnin.garden/sarah"
|
||||
# What the install dialog starts with, per program, overriding the
|
||||
# manifest's defaults: {Program: {OptionId: ticked}} and
|
||||
# {Program: {QuestionId: answer}}. Set in Settings.
|
||||
OptionDefaults: dict[str, dict[str, bool]] = field(default_factory=dict)
|
||||
AnswerDefaults: dict[str, dict[str, str]] = field(default_factory=dict)
|
||||
|
||||
def Save(self) -> None:
|
||||
ConfigDir.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
Reference in new issue
Block a user