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:
parent
bf386598b6
commit
b09ba19d3f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user