From fc8e98b31a759f405486ef5c60a2c1f3fb480e54 Mon Sep 17 00:00:00 2001 From: EKNr1 Date: Sat, 7 Dec 2024 19:26:25 +0100 Subject: [PATCH] Adapted some code to changes in the wobbl tools. --- main.py | 1 - utils.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/main.py b/main.py index c4b7c1e..72a9513 100755 --- a/main.py +++ b/main.py @@ -11,7 +11,6 @@ from settings import Settings class BreadEditor: def __init__(self): self.settings = load_dataclass_json(Settings, "settings.json") - setattr(self.settings, "save", lambda: save_dataclass_json(self.settings, "settings.json")) self.utils = Utils(self) self.file_actions = FileActions(self) diff --git a/utils.py b/utils.py index f7bc25e..b728782 100644 --- a/utils.py +++ b/utils.py @@ -95,7 +95,7 @@ class Utils: def close(self): print("Bye!") - self.app.settings.save() + self.app.settings.save("settings.json") def update_style_in_all_bit_editors(self): self.app.settings.highlight_ones = self.app.gui.main_window.highlightOnesSetting.isChecked()