mirror of
https://github.com/aclist/dztui.git
synced 2026-08-25 17:32:36 +02:00
fix: reset window context on cooldown
This commit is contained in:
parent
a94859a157
commit
6b669e5c21
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user