mirror of
https://github.com/aclist/dztui.git
synced 2026-10-30 06:32:53 +01:00
feat: set exit event on SIGINT
This commit is contained in:
1 parent
90f818f462
commit
0aafe44b4e
3 files changed
+17
-4
No files matched your search
+1
-1
@@ -94,7 +94,6 @@ class OuterWindow(Gtk.Window):
|
||||
self.halt_proc_and_quit()
|
||||
|
||||
def halt_proc_and_quit(self) -> None:
|
||||
# MainController.terminate_process()
|
||||
MainController.save_res_and_quit()
|
||||
|
||||
|
||||
@@ -319,6 +318,7 @@ class App(Gtk.Application):
|
||||
logger.critical(e)
|
||||
|
||||
def _catch_sigint(self) -> Literal[True]:
|
||||
MainController.set_exit_event()
|
||||
self.win.halt_proc_and_quit()
|
||||
return True
|
||||
|
||||
|
||||
Reference in new issue
Block a user