mirror of
https://github.com/ppy/osu.git
synced 2026-05-21 01:39:54 +08:00
Avoid using .Children for enumeration in other locations
This commit is contained in:
@@ -343,7 +343,7 @@ namespace osu.Game.Screens.Menu
|
||||
{
|
||||
buttonArea.ButtonSystemState = state;
|
||||
|
||||
foreach (var b in buttonArea.Children.OfType<MainMenuButton>())
|
||||
foreach (var b in buttonArea.OfType<MainMenuButton>())
|
||||
b.ButtonSystemState = state;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user