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()