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]