From d465d5973b44939107de993a5eb8e89b14feb384 Mon Sep 17 00:00:00 2001 From: Sander Land Date: Tue, 28 Jul 2020 11:59:15 +0200 Subject: [PATCH] force cfg --- katrain/config.json | 3 ++- katrain/core/constants.py | 2 +- katrain/gui/popups.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/katrain/config.json b/katrain/config.json index 9b9fedf..c52a290 100644 --- a/katrain/config.json +++ b/katrain/config.json @@ -16,7 +16,7 @@ "anim_pv_time": 0.5, "debug_level": 0, "lang": "en", - "version": "1.3.0" + "version": "1.3.3" }, "timer": { "byo_length": 30, @@ -31,6 +31,7 @@ "clear_cache": false }, "trainer": { + "theme": "theme:normal", "num_undo_prompts": [ 1, 1, diff --git a/katrain/core/constants.py b/katrain/core/constants.py index cb5cfde..85af915 100644 --- a/katrain/core/constants.py +++ b/katrain/core/constants.py @@ -1,6 +1,6 @@ VERSION = "1.3.3" HOMEPAGE = "https://github.com/sanderland/katrain" -CONFIG_MIN_VERSION = "1.3.0" # keep config files from this version +CONFIG_MIN_VERSION = "1.3.3" # keep config files from this version OUTPUT_ERROR = -1 OUTPUT_KATAGO_STDERR = -0.5 diff --git a/katrain/gui/popups.py b/katrain/gui/popups.py index f12ebc8..0aec0a4 100644 --- a/katrain/gui/popups.py +++ b/katrain/gui/popups.py @@ -269,7 +269,7 @@ class ConfigTeacherPopup(QuickConfigGui): self.options_grid.add_widget(wrap_anchor(widget)) def build_and_set_properties(self, *_args): - theme = self.katrain.config("trainer/theme", "theme:normal") + theme = self.katrain.config("trainer/theme") undos = self.katrain.config("trainer/num_undo_prompts") thresholds = self.katrain.config("trainer/eval_thresholds") savesgfs = self.katrain.config("trainer/save_feedback")