feat: set exit event on SIGINT

This commit is contained in:
aclist committed 2026-05-01 22:54:20 +09:00
1 parent 90f818f462
commit 0aafe44b4e
3 files changed
+17 -4

No files matched your search

+1 -1
View File
@@ -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