mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-14 11:41:49 +02:00
fix: remove close widgets on server, app will tear them down
This commit is contained in:
@ -307,9 +307,9 @@ def main():
|
|||||||
# display message, for people to let it terminate gracefully
|
# display message, for people to let it terminate gracefully
|
||||||
print("Caught SIGINT, exiting")
|
print("Caught SIGINT, exiting")
|
||||||
# Widgets should be all closed.
|
# Widgets should be all closed.
|
||||||
with RPCRegister.delayed_broadcast():
|
# with RPCRegister.delayed_broadcast():
|
||||||
for widget in QApplication.instance().topLevelWidgets():
|
# for widget in QApplication.instance().topLevelWidgets():
|
||||||
widget.close()
|
# widget.close()
|
||||||
app.quit()
|
app.quit()
|
||||||
|
|
||||||
# gui.bec.close()
|
# gui.bec.close()
|
||||||
|
Reference in New Issue
Block a user