1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-26 13:42:23 +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
Unverified
parent bf386598b6
commit b09ba19d3f
+1 -2
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);