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

Qt confuses closed and hidden
This commit is contained in:
guijar_m committed 2024-11-27 11:44:03 +01:00
1 parent 60292465e9
commit 96e255e4ef
2 files changed
+1 -1

No files matched your search

+1
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()