From 33d5106703898709989a2241fe757c5b6dd4c317 Mon Sep 17 00:00:00 2001 From: gabriel20xx Date: Mon, 7 Jul 2025 22:01:29 +0200 Subject: [PATCH] fix main ui --- main.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/main.py b/main.py index a006088..25acb8d 100644 --- a/main.py +++ b/main.py @@ -490,15 +490,15 @@ class MainWindow(QtWidgets.QMainWindow): layout.addWidget(start_state_group, 5, 0, 1, 5) layout.setRowStretch(5, 0) # Prevent vertical stretch - def _log_btn_refresh_windows(self): - logger.info("UI: Refresh Windows button pressed") - self.refresh_window_list() - - # Set central widget + # Set central widget (must be at the end of init_ui) central = QtWidgets.QWidget() central.setLayout(layout) self.setCentralWidget(central) + def _log_btn_refresh_windows(self): + logger.info("UI: Refresh Windows button pressed") + self.refresh_window_list() + def _log_combo_scenario(self, idx): """ Log scenario combo box change and call select_scenario.