Fix several oversights in data linking causing drawable rooms not updating as expected

This commit is contained in:
Dean Herbert
2022-02-24 16:12:15 +09:00
parent 53bbd00675
commit c6d78b9325
3 changed files with 11 additions and 10 deletions

View File

@ -46,6 +46,7 @@ namespace osu.Game.Online.Rooms
public readonly Bindable<RoomPlaylistItemStats> PlaylistItemStats = new Bindable<RoomPlaylistItemStats>();
[JsonProperty("difficulty_range")]
[Cached]
public readonly Bindable<RoomDifficultyRange> DifficultyRange = new Bindable<RoomDifficultyRange>();
[Cached]
@ -190,6 +191,7 @@ namespace osu.Game.Online.Rooms
QueueMode.Value = other.QueueMode.Value;
DifficultyRange.Value = other.DifficultyRange.Value;
PlaylistItemStats.Value = other.PlaylistItemStats.Value;
CurrentPlaylistItem.Value = other.CurrentPlaylistItem.Value;
if (EndDate.Value != null && DateTimeOffset.Now >= EndDate.Value)
Status.Value = new RoomStatusEnded();