Add an experimental shutdown handler

This commit is contained in:
DevilXD committed 2022-08-19 14:09:06 +02:00
1 parent 6d5191e148
commit 0431a2d98e
3 files changed
+4 -11

No files matched your search

-8
View File
@@ -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,