1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 05:42:56 +08:00

Used the already-existing private method to undelete a mapset

This commit is contained in:
FreezyLemon 2017-11-30 11:02:53 +01:00
parent bf386598b6
commit b09ba19d3f

View File

@ -351,8 +351,7 @@ namespace osu.Game.Beatmaps
var iFiles = new FileStore(() => context, storage);
var iBeatmaps = createBeatmapStore(() => context);
if (iBeatmaps.Undelete(beatmapSet))
iFiles.Reference(beatmapSet.Files.Select(f => f.FileInfo).ToArray());
undelete(iBeatmaps, iFiles, beatmapSet);
context.ChangeTracker.AutoDetectChangesEnabled = true;
context.SaveChanges(transaction);