0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-14 03:31:50 +02:00

fix(server): remove window.hide() since widgets will be teared down on kill_server before siginit signals is sent

This commit is contained in:
2025-03-14 10:25:41 +01:00
committed by wyzula-jan
parent 2ba9b4cb23
commit 58b0c7ddc1

View File

@ -315,12 +315,6 @@ def main():
def sigint_handler(*args):
# display message, for people to let it terminate gracefully
print("Caught SIGINT, exiting")
# first hide all top level windows
# this is to discriminate the cases between "user clicks on [X]"
# (which should be filtered, to not close -see BECDockArea-)
# or "app is asked to close"
for window in app.topLevelWidgets():
window.hide() # so, we know we can exit because it is hidden
app.quit()
signal.signal(signal.SIGINT, sigint_handler)