Skip to content

Commit

Permalink
Merge pull request #626 from aberges-SLAC/update_children_fix
Browse files Browse the repository at this point in the history
ENH: Zach's impressive 11 char fix to _update_children
  • Loading branch information
ZLLentz authored Jan 30, 2025
2 parents 3c1daa6 + 8f7837f commit 90b568b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
625 fix add_device behavior with custom displays
#################

API Breaks
----------
- N/A

Features
--------
- Allows custom displays with "add_device" methods to hook typhos correctly

Bugfixes
--------
- N/A

Maintenance
-----------
- N/A

Contributors
------------
- ZLLentz
- aberges-SLAC
2 changes: 1 addition & 1 deletion typhos/display.py
Original file line number Diff line number Diff line change
Expand Up @@ -1467,7 +1467,7 @@ def _update_children(self):
designer = display.findChildren(widgets.TyphosDesignerMixin) or []
bases = display.findChildren(utils.TyphosBase) or []

for widget in set(bases + designer):
for widget in set(bases + designer + [display]):
if device and hasattr(widget, 'add_device'):
widget.add_device(device)

Expand Down

0 comments on commit 90b568b

Please sign in to comment.