Fix crashes when importing/deleting from model managers

This commit is contained in:
smoogipoo
2018-11-20 18:09:23 +09:00
parent 51c192d4b7
commit 5ad96afea0
5 changed files with 14 additions and 14 deletions

View File

@ -78,17 +78,17 @@ namespace osu.Game.Beatmaps.Drawables
}
}
private void setAdded(BeatmapSetInfo s)
private void setAdded(BeatmapSetInfo s) => Schedule(() =>
{
if (s.OnlineBeatmapSetID == set.OnlineBeatmapSetID)
DownloadState.Value = DownloadStatus.Downloaded;
}
});
private void setRemoved(BeatmapSetInfo s)
private void setRemoved(BeatmapSetInfo s) => Schedule(() =>
{
if (s.OnlineBeatmapSetID == set.OnlineBeatmapSetID)
DownloadState.Value = DownloadStatus.NotDownloaded;
}
});
private void downloadBegan(DownloadBeatmapSetRequest d)
{