diff --git a/src/config.py b/src/config.py index 66ea9d1..e97cbb8 100644 --- a/src/config.py +++ b/src/config.py @@ -38,7 +38,10 @@ def get_property(self, key): def set_property(self, key, val): config = configparser.ConfigParser() config.read(self.config_file) + print(config["settings"][key]) config["settings"][key] = val + print(config["settings"][key]) with open(self.config_file, "w") as f: config.write(f) + diff --git a/src/window.py b/src/window.py index af5c82d..4d9507f 100644 --- a/src/window.py +++ b/src/window.py @@ -256,7 +256,7 @@ def deploy_type_toggled(self, widget): else: if self.conf.get_property("deploy_type") == "quick": self.conf.set_property("deploy_type", "manual") - if self.conf.get_property("deploy_type") == "manual": + else: self.conf.set_property("deploy_type", "quick") self.main_info.set_text("[WARN ] Settings changed, please restart Siglo") self.rescan_button.set_visible(False) @@ -272,7 +272,7 @@ def mode_toggled(self, widget): else: if self.conf.get_property("mode") == "singleton": self.conf.set_property("mode", "multi") - if self.conf.get_property("mode") == "multi": + else: self.conf.set_property("mode", "singleton") self.main_info.set_text("[WARN ] Settings changed, please restart Siglo") self.rescan_button.set_visible(False)