ObjectSpace.each_object(UI::HtmlDialog).map(&:itself).each do |dialog|
if dialog.visible?
dialog.bring_to_front
dialog.center
end
end
5 Likes
ObjectSpace.each_object(UI::HtmlDialog).map(&:itself).each do |dialog|
if dialog.visible?
dialog.bring_to_front
dialog.center
end
end