0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-13 19:21:50 +02:00

fix: do not quit automatically when last window is "closed"

Qt confuses closed and hidden
This commit is contained in:
2024-11-14 16:18:00 +01:00
parent 60292465e9
commit 96e255e4ef
2 changed files with 1 additions and 1 deletions

View File

@ -212,6 +212,7 @@ def main():
with redirect_stdout(SimpleFileLikeFromLogOutputFunc(logger.info)):
with redirect_stderr(SimpleFileLikeFromLogOutputFunc(logger.error)):
app = QApplication(sys.argv)
app.setQuitOnLastWindowClosed(False)
app.setApplicationName("BEC Figure")
module_path = os.path.dirname(bec_widgets.__file__)
icon = QIcon()

View File

@ -145,7 +145,6 @@ def test_dock_manipulations_e2e(rpc_server_dock):
d2.remove()
dock_config = dock._config_dict
assert len(dock_config["docks"]) == 2
assert ["dock_0", "dock_1"] == list(dock_config["docks"])