From 6b669e5c2144399a3d393d93e954ab45493acba3 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Tue, 3 Dec 2024 21:41:54 +0900 Subject: [PATCH] fix: reset window context on cooldown --- helpers/ui.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/helpers/ui.py b/helpers/ui.py index af1b553..9b51720 100644 --- a/helpers/ui.py +++ b/helpers/ui.py @@ -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)