From 62eb2aa37fc7cb31cb5b8f48fb96e63173350443 Mon Sep 17 00:00:00 2001 From: Tolonen Luka Date: Wed, 11 Sep 2024 17:23:56 +0300 Subject: [PATCH] Remove incomplete robot check that causes bug with single robot --- invesalius/gui/task_navigator.py | 1 - invesalius/navigation/robot.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/invesalius/gui/task_navigator.py b/invesalius/gui/task_navigator.py index ecaa70cee..f83e687c1 100644 --- a/invesalius/gui/task_navigator.py +++ b/invesalius/gui/task_navigator.py @@ -1657,7 +1657,6 @@ def UpdateRobotButtons(self): and self.target_selected and self.target_mode and self.robot.IsConnected() - and self.robot.IsReady() ) self.EnableRobotTrackTargetButton(enabled=track_target_button_enabled) diff --git a/invesalius/navigation/robot.py b/invesalius/navigation/robot.py index e4e8ad7a4..7aab6c453 100644 --- a/invesalius/navigation/robot.py +++ b/invesalius/navigation/robot.py @@ -158,7 +158,7 @@ def IsConnected(self): return self.is_robot_connected def IsReady(self): # LUKATODO: use this check before enabling robot for navigation... - self.IsConnected() and (self.coil_name in self.navigation.coil_registrations) + return self.IsConnected() and (self.coil_name in self.navigation.coil_registrations) def SetRobotIP(self, data): if data is not None: