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: