OOPing it more: Removed gui_communication/settings.py

This commit is contained in:
The Wobbler 2025-01-25 15:14:20 +01:00
parent 3685f25882
commit d2c74438cb
5 changed files with 24 additions and 35 deletions

View file

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