mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 23:43:03 +08:00
Use ChildrenOfType
instead of linq
This commit is contained in:
parent
f8f485e4c8
commit
9064391226
@ -29,6 +29,7 @@ using osu.Framework.Input.Handlers.Tablet;
|
||||
using osu.Framework.Localisation;
|
||||
using osu.Framework.Logging;
|
||||
using osu.Framework.Screens;
|
||||
using osu.Framework.Testing;
|
||||
using osu.Framework.Threading;
|
||||
using osu.Game.Beatmaps;
|
||||
using osu.Game.Collections;
|
||||
@ -516,7 +517,7 @@ namespace osu.Game
|
||||
else if (importedSkinsCount > 1)
|
||||
{
|
||||
Settings.Show();
|
||||
Settings.SectionsContainer.ScrollTo(Settings.SectionsContainer.Single(container => container is SkinSection));
|
||||
Settings.SectionsContainer.ScrollTo(Settings.SectionsContainer.ChildrenOfType<SkinSection>().Single());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user