mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-14 11:41:49 +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:
@ -315,12 +315,6 @@ def main():
|
|||||||
def sigint_handler(*args):
|
def sigint_handler(*args):
|
||||||
# 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")
|
||||||
# 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()
|
app.quit()
|
||||||
|
|
||||||
signal.signal(signal.SIGINT, sigint_handler)
|
signal.signal(signal.SIGINT, sigint_handler)
|
||||||
|
Reference in New Issue
Block a user