diff --git a/src/bundles/ui/src/widgets/tabbedtoolbar.py b/src/bundles/ui/src/widgets/tabbedtoolbar.py
index bc79d6212..75f4d29ff 100644
|
a
|
b
|
class _Section(QWidgetAction):
|
| 335 | 335 | self.add_button_highlight(button_info.title, redo=False) |
| 336 | 336 | self._redo_layout() |
| 337 | 337 | |
| 338 | | def set_enabled(self, enabled, title, redo=True): |
| | 338 | def set_enabled(self, enabled, button_title, redo=True): |
| 339 | 339 | for button_info in self._buttons: |
| 340 | | if button_info.title == title: |
| | 340 | if button_info.title == button_title: |
| 341 | 341 | break |
| 342 | 342 | else: |
| 343 | | raise ValueError(f"Didn't find button '{title}'") |
| | 343 | raise ValueError(f"Didn't find button '{button_title}'") |
| 344 | 344 | if button_info.enabled == enabled: |
| 345 | 345 | return |
| 346 | 346 | button_info.enabled = enabled |
| 347 | 347 | if redo: |
| 348 | | self._redo_layout() |
| | 348 | existing_widgets = self.createdWidgets() |
| | 349 | for parent in existing_widgets: |
| | 350 | action = self.get_qt_button_action(parent, button_title) |
| | 351 | if action is None: |
| | 352 | continue |
| | 353 | action.setEnabled(enabled) |
| 349 | 354 | |
| 350 | 355 | def show_group_button(self, button_title): |
| 351 | 356 | for button_info in self._buttons: |