Added custom exception hook for logging; removed cruft; added shutdown signal

This commit is contained in:
2023-10-18 19:00:33 -05:00
parent 43d0881a36
commit 37d7075079
3 changed files with 15 additions and 7 deletions

View File

@@ -1,5 +1,4 @@
# Python imports
import time
import signal
# Lib imports
@@ -99,6 +98,8 @@ class Window(Gtk.ApplicationWindow):
def _tear_down(self, widget = None, eve = None):
event_system.emit("shutting_down")
size = self.get_default_size()
pos = self.get_position()
@@ -109,5 +110,4 @@ class Window(Gtk.ApplicationWindow):
settings_manager.save_settings()
settings_manager.clear_pid()
time.sleep(event_sleep_time)
Gtk.main_quit()