refactor(settings): use SimpleConfigParser for KiauhSettings

Signed-off-by: Dominik Willner <th33xitus@gmail.com>
This commit is contained in:
dw-0
2024-06-19 20:12:39 +02:00
parent c2dfabb326
commit 5c090e88c3
8 changed files with 158 additions and 84 deletions

View File

@@ -124,7 +124,7 @@ def update_klipperscreen() -> None:
cmd_sysctl_service("KlipperScreen", "stop")
settings = KiauhSettings()
if settings.get("kiauh", "backup_before_update"):
if settings.kiauh.backup_before_update:
backup_klipperscreen_dir()
git_pull_wrapper(KLIPPERSCREEN_REPO, KLIPPERSCREEN_DIR)