1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 15:47:26 +08:00

Fix BeatmapSetInfos with OnlineBeatmapSetID set to null being marked as downloaded.

This commit is contained in:
DrabWeb 2018-06-04 21:11:27 -03:00
parent 61e1358410
commit d8154f8cad

View File

@ -35,7 +35,8 @@ namespace osu.Game.Beatmaps.Drawables
beatmaps.ItemRemoved += setRemoved;
// initial value
Downloaded.Value = beatmaps.QueryBeatmapSets(s => s.OnlineBeatmapSetID == set.OnlineBeatmapSetID && !s.DeletePending).Count() != 0;
if (set.OnlineBeatmapSetID != null)
Downloaded.Value = beatmaps.QueryBeatmapSets(s => s.OnlineBeatmapSetID == set.OnlineBeatmapSetID && !s.DeletePending).Count() != 0;
}
protected override void Dispose(bool isDisposing)