mirror of
https://github.com/aclist/dztui.git
synced 2026-10-25 12:12:31 +01:00
fix: reset window context on cooldown
This commit is contained in:
1 parent
a94859a157
commit
6b669e5c21
1 file changed
+2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user