1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 17:33:02 +08:00

Schedule selection update handling in MatchSubScreen to avoid firing when not the current screen

This commit is contained in:
Dean Herbert 2020-02-15 15:07:10 +09:00
parent 637c1dc840
commit f54844d8a5

View File

@ -164,8 +164,8 @@ namespace osu.Game.Screens.Multi.Match
{
base.LoadComplete();
Playlist.ItemsAdded += _ => updateSelectedItem();
Playlist.ItemsRemoved += _ => updateSelectedItem();
Playlist.ItemsAdded += _ => Scheduler.AddOnce(updateSelectedItem);
Playlist.ItemsRemoved += _ => Scheduler.AddOnce(updateSelectedItem);
updateSelectedItem();
}