mirror of https://github.com/ppy/osu
Allow undeleting scores if their beatmap exists
This commit is contained in:
parent
ff2f3cde02
commit
c89c092b98
|
@ -56,8 +56,6 @@ protected override ScoreInfo CreateModel(ArchiveReader archive)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override bool CanUndelete(ScoreInfo existing, ScoreInfo import) => false;
|
|
||||||
|
|
||||||
protected override IEnumerable<string> GetStableImportPaths(Storage stableStorage)
|
protected override IEnumerable<string> GetStableImportPaths(Storage stableStorage)
|
||||||
=> stableStorage.GetFiles(ImportFromStablePath).Where(p => HandledExtensions.Any(ext => Path.GetExtension(p)?.Equals(ext, StringComparison.InvariantCultureIgnoreCase) ?? false));
|
=> stableStorage.GetFiles(ImportFromStablePath).Where(p => HandledExtensions.Any(ext => Path.GetExtension(p)?.Equals(ext, StringComparison.InvariantCultureIgnoreCase) ?? false));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue