Skip to content

Commit

Permalink
Remove incomplete robot check that causes bug with single robot
Browse files Browse the repository at this point in the history
  • Loading branch information
Tolonen Luka committed Sep 11, 2024
1 parent 81f4251 commit 62eb2aa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion invesalius/gui/task_navigator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion invesalius/navigation/robot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 62eb2aa

Please sign in to comment.