From 49fd7a100f82fc0f6ad57b7d00b44f3610cdf6a9 Mon Sep 17 00:00:00 2001 From: Robert Honz Date: Tue, 30 Sep 2025 22:43:22 +0200 Subject: [PATCH] =?UTF-8?q?fix(gui):=20=F0=9F=90=9B=20adjust=20MainWindow?= =?UTF-8?q?=20initialization=20and=20clean=20up=20close=20event=20method?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Added a missing line in the `MainWindow` constructor to ensure proper settings initialization. * Removed unnecessary blank line in the `closeEvent` method for cleaner code. --- tidal_dl_ng/gui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tidal_dl_ng/gui.py b/tidal_dl_ng/gui.py index 216ed4b..f7301b8 100644 --- a/tidal_dl_ng/gui.py +++ b/tidal_dl_ng/gui.py @@ -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()