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:
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", "", "")
|
cooldown = call_out(self, "test_cooldown", "", "")
|
||||||
if cooldown.returncode == 1:
|
if cooldown.returncode == 1:
|
||||||
spawn_dialog(outer, cooldown.stdout, Popup.NOTIFY)
|
spawn_dialog(outer, cooldown.stdout, Popup.NOTIFY)
|
||||||
|
# reset context to main menu if navigation was blocked
|
||||||
|
self.view = WindowContext.MAIN_MENU
|
||||||
return 1
|
return 1
|
||||||
for check in checks:
|
for check in checks:
|
||||||
toggle_signal(filters_vbox, check, '_on_check_toggle', False)
|
toggle_signal(filters_vbox, check, '_on_check_toggle', False)
|
||||||
|
|
Loading…
Reference in a new issue