1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 03:25:11 +08:00

Change SelectedItem to show the last item by default

This commit is contained in:
smoogipoo 2021-09-29 20:24:32 +09:00
parent d89577b2e7
commit 5f921c7836

View File

@ -66,7 +66,7 @@ namespace osu.Game.Screens.OnlinePlay
protected Bindable<TimeSpan?> Duration { get; private set; } protected Bindable<TimeSpan?> Duration { get; private set; }
/// <summary> /// <summary>
/// The currently selected item in the <see cref="RoomSubScreen"/>, or the first item from <see cref="Playlist"/> /// The currently selected item in the <see cref="RoomSubScreen"/>, or the last item from <see cref="Playlist"/>
/// if this <see cref="OnlinePlayComposite"/> is not within a <see cref="RoomSubScreen"/>. /// if this <see cref="OnlinePlayComposite"/> is not within a <see cref="RoomSubScreen"/>.
/// </summary> /// </summary>
protected readonly Bindable<PlaylistItem> SelectedItem = new Bindable<PlaylistItem>(); protected readonly Bindable<PlaylistItem> SelectedItem = new Bindable<PlaylistItem>();
@ -80,7 +80,7 @@ namespace osu.Game.Screens.OnlinePlay
protected virtual void UpdateSelectedItem() protected virtual void UpdateSelectedItem()
{ {
SelectedItem.Value = Playlist.FirstOrDefault(); SelectedItem.Value = Playlist.LastOrDefault();
} }
} }
} }