fix: remove close widgets on server, app will tear them down

This commit is contained in:
2025-04-07 17:53:11 +02:00
parent 91b59adf78
commit e53a94ebd1
+3 -3
View File
@@ -307,9 +307,9 @@ def main():
# display message, for people to let it terminate gracefully
print("Caught SIGINT, exiting")
# Widgets should be all closed.
with RPCRegister.delayed_broadcast():
for widget in QApplication.instance().topLevelWidgets():
widget.close()
# with RPCRegister.delayed_broadcast():
# for widget in QApplication.instance().topLevelWidgets():
# widget.close()
app.quit()
# gui.bec.close()