mirror of
https://github.com/aclist/dztui.git
synced 2024-12-28 21:32:36 +01:00
fix: reset window context on cooldown
This commit is contained in:
parent
a94859a157
commit
6b669e5c21
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue