Skip to content

Commit

Permalink
Coexistence of widgets that do not handle visibility
Browse files Browse the repository at this point in the history
Call #update_visibility only if the child widget has that method
  • Loading branch information
mvidner committed Jan 23, 2019
1 parent a31b0ee commit 7c281cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/y2configuration_management/widgets/group.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def value

def update_visibility(data)
children.each do |widget|
widget.update_visibility(data)
widget.update_visibility(data) if widget.respond_to? :update_visibility
end
end

Expand Down

0 comments on commit 7c281cc

Please sign in to comment.