From b1c289001e97a81dfdde386e504e5b54d917355c Mon Sep 17 00:00:00 2001 From: kraanzu Date: Thu, 14 Nov 2024 17:48:11 +0530 Subject: [PATCH] fix: move to NORMAL mode when bar is switched --- dooit/ui/widgets/bars/_base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dooit/ui/widgets/bars/_base.py b/dooit/ui/widgets/bars/_base.py index 5bb3305d..76cbc055 100644 --- a/dooit/ui/widgets/bars/_base.py +++ b/dooit/ui/widgets/bars/_base.py @@ -44,7 +44,8 @@ def switcher(self) -> "BarSwitcher": assert isinstance(parent, BarSwitcher) return parent - def on_unmount(self): + async def on_unmount(self): + self.post_message(ModeChanged("NORMAL")) self.switcher.current = "status_bar" def perform_action(self, cancel: bool):