mirror of https://github.com/ppy/osu
Change SelectedItem to show the last item by default
This commit is contained in:
parent
d89577b2e7
commit
5f921c7836
|
@ -66,7 +66,7 @@ public class OnlinePlayComposite : CompositeDrawable
|
|||
protected Bindable<TimeSpan?> Duration { get; private set; }
|
||||
|
||||
/// <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"/>.
|
||||
/// </summary>
|
||||
protected readonly Bindable<PlaylistItem> SelectedItem = new Bindable<PlaylistItem>();
|
||||
|
@ -80,7 +80,7 @@ protected override void LoadComplete()
|
|||
|
||||
protected virtual void UpdateSelectedItem()
|
||||
{
|
||||
SelectedItem.Value = Playlist.FirstOrDefault();
|
||||
SelectedItem.Value = Playlist.LastOrDefault();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue