mirror of
https://github.com/osukey/osukey.git
synced 2025-05-07 22:57:31 +09:00
Merge pull request #13757 from peppy/fix-import-optimisation
Fix incorrect `base` call causing import optimisation to not work
This commit is contained in:
commit
b6542a835b
@ -324,7 +324,7 @@ namespace osu.Game.Beatmaps
|
|||||||
|
|
||||||
protected override bool CanSkipImport(BeatmapSetInfo existing, BeatmapSetInfo import)
|
protected override bool CanSkipImport(BeatmapSetInfo existing, BeatmapSetInfo import)
|
||||||
{
|
{
|
||||||
if (!base.CanReuseExisting(existing, import))
|
if (!base.CanSkipImport(existing, import))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return existing.Beatmaps.Any(b => b.OnlineBeatmapID != null);
|
return existing.Beatmaps.Any(b => b.OnlineBeatmapID != null);
|
||||||
|
@ -353,8 +353,6 @@ namespace osu.Game.Database
|
|||||||
{
|
{
|
||||||
cancellationToken.ThrowIfCancellationRequested();
|
cancellationToken.ThrowIfCancellationRequested();
|
||||||
|
|
||||||
delayEvents();
|
|
||||||
|
|
||||||
bool checkedExisting = false;
|
bool checkedExisting = false;
|
||||||
TModel existing = null;
|
TModel existing = null;
|
||||||
|
|
||||||
@ -394,6 +392,8 @@ namespace osu.Game.Database
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
delayEvents();
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
LogForModel(item, @"Beginning import...");
|
LogForModel(item, @"Beginning import...");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user