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:
parent
637c1dc840
commit
f54844d8a5
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user