Skip to content

Commit

Permalink
make the drive widget update its display when the configuration is ch…
Browse files Browse the repository at this point in the history
…anged
  • Loading branch information
rocco8773 committed Oct 22, 2024
1 parent 4f2599f commit cddf83b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bapsf_motion/gui/configure/motion_group_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -804,6 +804,7 @@ def _connect_signals(self):
self.configChanged.connect(self._update_drive_dropdown)
self.configChanged.connect(self._update_mb_dropdown)
self.configChanged.connect(self._update_transform_dropdown)
self.configChanged.connect(self._update_drive_control_widget)

self.drive_dropdown.currentIndexChanged.connect(
self._drive_dropdown_new_selection
Expand Down Expand Up @@ -1421,6 +1422,12 @@ def _update_toml_widget(self):
def _update_mg_name_widget(self):
self.mg_name_widget.setText(self.mg_config["name"])

def _update_drive_control_widget(self):
if not self.drive_control_widget.isEnabled():
return

self.drive_control_widget._update_all_axis_displays()

def _rename_motion_group(self):
self.logger.info("Renaming motion group")
self.mg.config["name"] = self.mg_name_widget.text()
Expand Down

0 comments on commit cddf83b

Please sign in to comment.