1
0
Fork 0
mirror of https://github.com/aclist/dztui.git synced 2024-12-29 13:52:03 +01:00

fix: reset window context on cooldown

This commit is contained in:
aclist 2024-12-03 21:41:54 +09:00
parent a94859a157
commit 6b669e5c21

View file

@ -1721,6 +1721,8 @@ class TreeView(Gtk.TreeView):
cooldown = call_out(self, "test_cooldown", "", "")
if cooldown.returncode == 1:
spawn_dialog(outer, cooldown.stdout, Popup.NOTIFY)
# reset context to main menu if navigation was blocked
self.view = WindowContext.MAIN_MENU
return 1
for check in checks:
toggle_signal(filters_vbox, check, '_on_check_toggle', False)