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

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

This commit is contained in:
2025-03-25 11:36:00 +01:00
parent 91b59adf78
commit e53a94ebd1

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