Add an experimental shutdown handler
This commit is contained in:
1 parent
6d5191e148
commit
0431a2d98e
3 files changed
+4
-11
No files matched your search
@@ -121,14 +121,6 @@ class Twitch:
|
||||
# perfect for GUI usage
|
||||
return partial(self.change_state, state)
|
||||
|
||||
def signal_close(self):
|
||||
"""
|
||||
Called when the application is requested to close by the operating system,
|
||||
usually by receiving a SIGINT or SIGTERM.
|
||||
"""
|
||||
# delegate this to the same action as the user clicking on the X in the GUI window
|
||||
self.gui.close()
|
||||
|
||||
def close(self):
|
||||
"""
|
||||
Called when the application is requested to close by the user,
|
||||
|
||||
Reference in new issue
Block a user