mirror of
https://github.com/ppy/osu.git
synced 2026-05-26 08:50:00 +08:00
Used the already-existing private method to undelete a mapset
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user