From 031c45f49a19a3e935e7febf0745269810809a2f Mon Sep 17 00:00:00 2001 From: Tolonen Luka Date: Mon, 15 Jul 2024 16:39:34 +0300 Subject: [PATCH] Actually set static/dynamic ref_mode in the Navigation class --- invesalius/gui/preferences.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/invesalius/gui/preferences.py b/invesalius/gui/preferences.py index 65c52880c..eead877eb 100644 --- a/invesalius/gui/preferences.py +++ b/invesalius/gui/preferences.py @@ -850,10 +850,7 @@ def OnChooseTracker(self, evt, ctrl): self.ShowParent() def OnChooseReferenceMode(self, evt, ctrl): - # Probably need to refactor object registration as a whole to use the - # OnChooseReferenceMode function which was used earlier. It can be found in - # the deprecated code in ObjectRegistrationPanel in task_navigator.py. - pass + Navigation().SetReferenceMode(evt.GetSelection()) def HideParent(self): # hide preferences dialog box self.GetGrandParent().Hide()