From 8555760f15e45339a844e6335f7207a2332fb6fe Mon Sep 17 00:00:00 2001 From: rmatsuda Date: Fri, 25 Oct 2024 09:41:43 +0300 Subject: [PATCH] MOD: always enable navigation tab --- invesalius/gui/task_navigator.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/invesalius/gui/task_navigator.py b/invesalius/gui/task_navigator.py index b602f3adc..7433ce873 100644 --- a/invesalius/gui/task_navigator.py +++ b/invesalius/gui/task_navigator.py @@ -279,11 +279,10 @@ def OnFoldPressCaption(self, evt): id = evt.GetTag().GetId() expanded = evt.GetFoldStatus() - if expanded: - self.fold_panel.Collapse(evt.GetTag()) - elif id != self.__id_nav or self.CheckRegistration(): - # Only expand navigation panel if coil selection/registration is done + if not expanded: self.fold_panel.Expand(evt.GetTag()) + else: + self.fold_panel.Collapse(evt.GetTag()) def ResizeFPB(self): sizeNeeded = self.fold_panel.GetPanelsLength(0, 0)[2]