Hook up ImportParameter flow with IModelImporter caller methods

This commit is contained in:
Dean Herbert
2022-12-13 21:03:25 +09:00
parent 6bb612ce69
commit cb16d62700
15 changed files with 39 additions and 25 deletions

View File

@ -73,7 +73,7 @@ namespace osu.Game.Database
if (originalModel != null)
importSuccessful = (await importer.ImportAsUpdate(notification, new ImportTask(filename), originalModel)) != null;
else
importSuccessful = (await importer.Import(notification, new ImportTask(filename))).Any();
importSuccessful = (await importer.Import(notification, new[] { new ImportTask(filename) })).Any();
// for now a failed import will be marked as a failed download for simplicity.
if (!importSuccessful)