Settings dialog, per-program install defaults, Options after install; Update only when needed

This commit is contained in:
sarah committed 2026-10-07 21:47:15 +02:00
1 parent 7018d57dbc
commit 08c9071b48
8 files changed
+360 -30

No files matched your search

+6 -1
View File
@@ -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)