1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 08:22: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 iFiles = new FileStore(() => context, storage);
var iBeatmaps = createBeatmapStore(() => context); var iBeatmaps = createBeatmapStore(() => context);
if (iBeatmaps.Undelete(beatmapSet)) undelete(iBeatmaps, iFiles, beatmapSet);
iFiles.Reference(beatmapSet.Files.Select(f => f.FileInfo).ToArray());
context.ChangeTracker.AutoDetectChangesEnabled = true; context.ChangeTracker.AutoDetectChangesEnabled = true;
context.SaveChanges(transaction); context.SaveChanges(transaction);