forked from Wobbl/Bread_Editor
Adapted some code to changes in the wobbl tools.
This commit is contained in:
parent
88ed72af3e
commit
fc8e98b31a
2 changed files with 1 additions and 2 deletions
1
main.py
1
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)
|
||||
|
|
2
utils.py
2
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()
|
||||
|
|
Loading…
Reference in a new issue