mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-14 03:31:50 +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
|
||||
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()
|
||||
|
Reference in New Issue
Block a user