Skip to content

Commit

Permalink
FIX: Set target mode button off when track obj is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
rmatsuda committed Jul 8, 2024
1 parent f7198cf commit a3a4136
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions invesalius/gui/task_navigator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1716,6 +1716,8 @@ def OnTrackObjectButton(self, evt=None, ctrl=None):
self.UpdateToggleButton(ctrl)
pressed = self.track_object_button.GetValue()
Publisher.sendMessage("Track object", enabled=pressed)
if not pressed:
Publisher.sendMessage("Press target mode button", pressed=pressed)

# Disable or enable 'Show coil' button, based on if 'Track object' button is pressed.
Publisher.sendMessage("Enable show-coil button", enabled=pressed)
Expand Down

0 comments on commit a3a4136

Please sign in to comment.