mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 09:32:55 +08:00
Fix playlist selecting random item when not allowed after deleting
This commit is contained in:
parent
49b0984079
commit
5dfd4180c8
@ -24,7 +24,8 @@ namespace osu.Game.Screens.OnlinePlay.Playlists
|
||||
|
||||
Items.Remove(item);
|
||||
|
||||
SelectedItem.Value = nextItem ?? Items.LastOrDefault();
|
||||
if (AllowSelection && SelectedItem.Value == item)
|
||||
SelectedItem.Value = nextItem ?? Items.LastOrDefault();
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user