mirror of
https://github.com/ppy/osu.git
synced 2025-03-21 12:57:20 +08:00
Fix currently playing text not showing in lounge
This commit is contained in:
parent
61b3280de1
commit
2bea485af8
@ -91,9 +91,15 @@ namespace osu.Game.Screens.OnlinePlay
|
||||
Playlist.BindCollectionChanged((_, __) => UpdateSelectedItem(), true);
|
||||
}
|
||||
|
||||
protected virtual void UpdateSelectedItem()
|
||||
=> SelectedItem.Value = RoomID.Value == null || subScreenSelectedItem == null
|
||||
? Playlist.GetCurrentItem()
|
||||
: subScreenSelectedItem.Value;
|
||||
protected void UpdateSelectedItem()
|
||||
{
|
||||
if (RoomID.Value == null || subScreenSelectedItem == null)
|
||||
{
|
||||
SelectedItem.Value = CurrentPlaylistItem.Value ?? Playlist.GetCurrentItem();
|
||||
return;
|
||||
}
|
||||
|
||||
SelectedItem.Value = subScreenSelectedItem.Value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user