Added settings and implemented restoring of window size.

This commit is contained in:
The Wobbler 2024-12-23 17:12:21 +01:00
parent 99934e73b7
commit 6aae95c865
6 changed files with 36 additions and 1 deletions

View file

@ -9,10 +9,16 @@ class GUI:
self.window = MainWindow()
if self.app.settings.window_maximized:
self.window.showMaximized()
elif not self.app.settings.window_size is None:
self.window.resize(*self.app.settings.window_size)
self.connect()
self.window.show()
def connect(self):
pass
self.window.closeEvent = self.app.utils.on_close