mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 17:13:06 +08:00
Change SelectedItem to show the last item by default
This commit is contained in:
parent
d89577b2e7
commit
5f921c7836
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user