Skip to content

Commit

Permalink
Use iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
nikeee committed Oct 27, 2024
1 parent 8c4491f commit 233e231
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/HolzShots.Legacy/UI/Controls/PanelActivator.vb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ Namespace UI.Controls
End Sub

Public Sub HideAll()
_toolPanelDict.ToList().ForEach(Function(ent) ent.Value.Visible = False)
For Each v In _toolPanelDict.Values
v.Visible = False
Next
End Sub

End Class
Expand Down

0 comments on commit 233e231

Please sign in to comment.