mirror of
https://github.com/osukey/osukey.git
synced 2025-05-29 17:37:23 +09:00
Fix "failed to import" message showing when importing from a stable install with no beatmaps
This commit is contained in:
parent
119b4e8174
commit
7e6bd0e995
@ -141,6 +141,13 @@ namespace osu.Game.Database
|
|||||||
|
|
||||||
protected async Task<IEnumerable<TModel>> Import(ProgressNotification notification, params ImportTask[] tasks)
|
protected async Task<IEnumerable<TModel>> Import(ProgressNotification notification, params ImportTask[] tasks)
|
||||||
{
|
{
|
||||||
|
if (tasks.Length == 0)
|
||||||
|
{
|
||||||
|
notification.CompletionText = $"No {HumanisedModelName}s were found to import!";
|
||||||
|
notification.State = ProgressNotificationState.Completed;
|
||||||
|
return Enumerable.Empty<TModel>();
|
||||||
|
}
|
||||||
|
|
||||||
notification.Progress = 0;
|
notification.Progress = 0;
|
||||||
notification.Text = $"{HumanisedModelName.Humanize(LetterCasing.Title)} import is initialising...";
|
notification.Text = $"{HumanisedModelName.Humanize(LetterCasing.Title)} import is initialising...";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user