diff options
| author | Robert Honz <exislow+github@gmail.com> | 2025-09-30 22:43:22 +0200 |
|---|---|---|
| committer | Robert Honz <exislow+github@gmail.com> | 2025-09-30 22:43:22 +0200 |
| commit | 49fd7a100f82fc0f6ad57b7d00b44f3610cdf6a9 (patch) | |
| tree | 4195c311a2ccf486d15e86e5a0f08e2b73da8e3e | |
| parent | 0d6381ab6e34e3da2ed37768a2f8aa597d660fce (diff) | |
| download | tidal-dl-ng-49fd7a100f82fc0f6ad57b7d00b44f3610cdf6a9.tar.gz | |
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.
| -rw-r--r-- | tidal_dl_ng/gui.py | 2 |
1 files changed, 1 insertions, 1 deletions
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() |
