fix(gui): remove not longer needed return to main window at close and cleanup
CI / lint (push) Skipped
CI / test (3.12) (push) Skipped
CI / test (3.13) (push) Skipped
CI / test-with-beamline-plugins (pxi_bec) (push) Skipped
CI / test-with-beamline-plugins (pxii_bec) (push) Skipped
CI / test-with-beamline-plugins (pxiii_bec) (push) Skipped
CI / coverage-analysis (pull_request) Canceled after 0s
CI / test-with-coverage (pull_request) Canceled after 58s
CI / test-with-beamline-plugins (pxiii_bec) (pull_request) Canceled after 59s
CI / test-with-beamline-plugins (pxii_bec) (pull_request) Canceled after 58s
CI / test-with-beamline-plugins (pxi_bec) (pull_request) Canceled after 1m3s
CI / test (3.12) (pull_request) Canceled after 1m3s
CI / test (3.14) (pull_request) Canceled after 1m3s
CI / lint (pull_request) Canceled after 1m4s
CI / test (3.13) (pull_request) Canceled after 1m3s

This commit is contained in:
2026-09-29 16:49:35 +02:00
parent 5c1e06376e
commit 168c8afb5f
-10
View File
@@ -2895,11 +2895,6 @@ class MainWindow(QMainWindow):
)
def closeEvent(self, event) -> None:
try:
self._return_to_main_view_for_shutdown()
except Exception as e:
logger.warning(f"Failed to restore main view before close: {e}", exc_info=True)
try:
# Closing while watch-only would persist the all-hidden fold and
# poison every future start — put the pre-watch layout back first.
@@ -2931,11 +2926,6 @@ class MainWindow(QMainWindow):
if self._cleanup_done:
return
try:
self._return_to_main_view_for_shutdown()
except Exception as e:
logger.warning(f"Failed to restore main view during cleanup: {e}", exc_info=True)
self._cleanup_done = True
try: