mirror of
https://github.com/ppy/osu.git
synced 2025-02-23 22:02:55 +08:00
Fix tests failing if playlist was empty
This commit is contained in:
parent
f9bda0524a
commit
5e9f195117
@ -75,6 +75,7 @@ namespace osu.Game.Screens.OnlinePlay.Playlists
|
||||
{
|
||||
base.LoadComplete();
|
||||
|
||||
if (room.Playlist.Count > 0)
|
||||
beatmapSubscription = realmAccess.RegisterForNotifications(r => r.All<BeatmapInfo>().Filter(formatFilterQuery(room.Playlist)), (sender, _) => downloadedBeatmapsCount.Value = sender.Count);
|
||||
|
||||
collectionSubscription = realmAccess.RegisterForNotifications(r => r.All<BeatmapCollection>().Where(c => c.Name == room.Name), (sender, _) => collectionExists.Value = sender.Count > 0);
|
||||
|
Loading…
Reference in New Issue
Block a user