forked from Wobbl/Wobuzz
OOPing it more: Removed gui_communication/settings.py
This commit is contained in:
parent
3685f25882
commit
d2c74438cb
5 changed files with 24 additions and 35 deletions
|
@ -10,6 +10,7 @@ class GUI:
|
|||
self.app = app
|
||||
|
||||
self.window = MainWindow()
|
||||
self.settings = self.window.settings
|
||||
|
||||
self.window.addDockWidget(Qt.DockWidgetArea.RightDockWidgetArea, self.app.library.main_library_dock)
|
||||
|
||||
|
@ -28,6 +29,11 @@ class GUI:
|
|||
|
||||
self.window.show()
|
||||
|
||||
self.settings.update_all()
|
||||
|
||||
def connect(self):
|
||||
self.window.closeEvent = self.app.utils.on_close
|
||||
|
||||
def on_settings_change(self, key, value):
|
||||
self.settings.update_settings(key, value)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue