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
1 changed files with 2 additions and 2 deletions

View File

@ -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();
}
}
}