From 6bc27f5180c318c7ab584444ea1070e3d39b17fe Mon Sep 17 00:00:00 2001 From: ila Date: Thu, 18 Jun 2026 09:36:19 +0800 Subject: [PATCH] chore: add update auth config defaults --- packaging/default_config/app_config.json | 7 ++++++- src/services/config_service.py | 4 +++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packaging/default_config/app_config.json b/packaging/default_config/app_config.json index d587008..879f395 100644 --- a/packaging/default_config/app_config.json +++ b/packaging/default_config/app_config.json @@ -3,5 +3,10 @@ "output_quality": 95, "output_dir": "", "last_garment_dir": "", - "last_print_dir": "" + "last_print_dir": "", + "last_template": "", + "last_batch_mode": "full_combo", + "update_source": "", + "update_user": "", + "update_pass": "" } diff --git a/src/services/config_service.py b/src/services/config_service.py index 91cc217..85af2db 100644 --- a/src/services/config_service.py +++ b/src/services/config_service.py @@ -11,7 +11,9 @@ DEFAULT_CONFIG = { "last_print_dir": "", "last_template": "", # name of the last-selected template "last_batch_mode": "full_combo", # BatchMode value of the last-used mode - "update_source": "", # LAN folder holding manifest.json (empty = no update check) + "update_source": "", # HTTP(S) manifest source (empty = no update check) + "update_user": "", # HTTP Basic Auth user (empty = anonymous) + "update_pass": "", # HTTP Basic Auth password (empty = anonymous) } _CONFIG_FILENAME = "app_config.json"