Clear working beatmap cache on save

This commit is contained in:
smoogipoo 2020-01-14 19:03:50 +09:00
parent ea7510d2f5
commit 4fe5ea8e92

View File

@ -194,6 +194,10 @@ namespace osu.Game.Beatmaps
UpdateFile(setInfo, setInfo.Files.Single(f => string.Equals(f.Filename, info.Path, StringComparison.OrdinalIgnoreCase)), stream);
}
var working = workingCache.FirstOrDefault(w => w.BeatmapInfo?.ID == info.ID);
if (working != null)
workingCache.Remove(working);
}
private readonly WeakList<WorkingBeatmap> workingCache = new WeakList<WorkingBeatmap>();