1
0
Fork 0
mirror of https://github.com/aclist/dztui.git synced 2025-04-03 19:13:00 +02:00

fix: send proper params to halt funcs
All checks were successful
Mirror to Codeberg / mirror-to-codeberg (push) Successful in 10s

This commit is contained in:
aclist 2025-03-14 23:47:46 +09:00
parent 35804df4df
commit df872fa4e7

View file

@ -899,7 +899,7 @@ class OuterWindow(Gtk.Window):
def halt_proc_and_quit(self, window, event):
self.grid.terminate_treeview_process()
save_res_and_quit(self.win)
save_res_and_quit(window)
class ScrollableTree(Gtk.ScrolledWindow):
@ -2455,11 +2455,14 @@ class App(Gtk.Application):
self.win.add_accel_group(accel)
GLib.unix_signal_add(GLib.PRIORITY_DEFAULT, signal.SIGINT, self._halt_window_subprocess)
GLib.unix_signal_add(GLib.PRIORITY_DEFAULT, signal.SIGINT, self._catch_sigint)
Gtk.main()
def _catch_sigint(self):
self.win.halt_proc_and_quit(self.win, None)
def _halt_window_subprocess(self, accel_group, window, code, flag):
self.win.halt_proc_and_quit(self, None)
self.win.halt_proc_and_quit(self.win, None)
def save_res_and_quit(window):
if window.props.is_maximized: