fix(gui): remove not longer needed return to main window at close and cleanup
CI / lint (pull_request) Successful in 1m27s
CI / test (3.12) (pull_request) Successful in 1m52s
CI / test (3.13) (pull_request) Successful in 1m35s
CI / test (3.14) (pull_request) Successful in 1m39s
CI / test-with-beamline-plugins (pxi_bec) (pull_request) Successful in 1m41s
CI / test-with-coverage (pull_request) Successful in 1m47s
CI / coverage-analysis (pull_request) Successful in 2s
CI / test-with-beamline-plugins (pxii_bec) (pull_request) Successful in 1m14s
CI / test-with-beamline-plugins (pxiii_bec) (pull_request) Successful in 1m20s
Docs build and publish / docker (push) Successful in 2s
Build and Publish / release (push) Failing after 14s
CI / test-with-beamline-plugins (pxii_bec) (push) Failing after 50s
CI / test-with-beamline-plugins (pxiii_bec) (push) Failing after 50s
CI / test-with-beamline-plugins (pxi_bec) (push) Failing after 1m0s
CI / lint (push) Failing after 1m27s
CI / test (3.12) (push) Successful in 1m35s
CI / test (3.13) (push) Successful in 1m36s
CI / test (3.14) (push) Successful in 1m37s
CI / test-with-coverage (push) Successful in 1m39s
CI / coverage-analysis (push) Skipped

This commit was merged in pull request #244.
This commit is contained in:
2026-09-29 16:51:07 +02:00
committed by duan_j
parent 3409d01efd
commit 2c388ff7ad
-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: