fix(gui): 🐛 adjust MainWindow initialization and clean up close event method

* Added a missing line in the `MainWindow` constructor to ensure proper settings initialization.
* Removed unnecessary blank line in the `closeEvent` method for cleaner code.
This commit is contained in:
Robert Honz
2025-09-30 22:43:22 +02:00
parent 0d6381ab6e
commit 49fd7a100f
+1 -1
View File
@@ -159,6 +159,7 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
# XStream.stderr().messageWritten.connect(self._log_output)
self.settings = Settings()
self._init_threads()
self._init_gui()
self._init_tree_results_model(self.model_tr_results)
@@ -1684,7 +1685,6 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
Args:
event (QtGui.QCloseEvent): The close event.
"""
# Save the main window size and position
self.settings.data.window_x = self.x()
self.settings.data.window_y = self.y()