Adapted some code to changes in the wobbl tools.

This commit is contained in:
The Wobbler 2024-12-07 19:26:25 +01:00
parent 88ed72af3e
commit fc8e98b31a
2 changed files with 1 additions and 2 deletions

View file

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

View file

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