1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 01:27:29 +08:00

Fix current section not being correct after early search

This commit is contained in:
Dean Herbert 2022-04-14 20:36:11 +09:00
parent 21a5a2fd69
commit 316c0845ec

View File

@ -287,7 +287,10 @@ namespace osu.Game.Overlays
set
{
SearchContainer.SearchTerm = value;
InvalidateScrollPosition();
// Schedule required as search term takes a frame to update.
// Without this sections may not be in the correct state to ascertain CurrentSection.
Schedule(InvalidateScrollPosition);
}
}