调整调试图像开关语义

This commit is contained in:
Your Name committed 2026-06-03 01:48:02 +08:00
1 parent 098083a354
commit 168ab4e1f8
9 files changed
+41 -5

No files matched your search

+6
View File
@@ -148,6 +148,9 @@ def load_config_to_ui(
vars_["fudai_detail_ui_mode_var"].set(
str(cfg.get("fudai_detail_ui_mode", "auto") or "auto")
)
vars_["fudai_detail_save_debug_images_var"].set(
bool(cfg.get("fudai_detail_save_debug_images", False))
)
for key, default in {
"fudai_detail_ocr_content_enabled": True,
"fudai_detail_ocr_value_enabled": True,
@@ -437,6 +440,9 @@ def save_ui_to_config(
)
ui_mode = str(vars_["fudai_detail_ui_mode_var"].get() or "auto").strip().lower()
cfg2["fudai_detail_ui_mode"] = ui_mode if ui_mode in ("auto", "legacy", "v2_0") else "auto"
cfg2["fudai_detail_save_debug_images"] = bool(
vars_["fudai_detail_save_debug_images_var"].get()
)
for key in (
"fudai_detail_ocr_content_enabled",
"fudai_detail_ocr_value_enabled",