1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 02:43:19 +08:00

Only mark stable import complete if it actually completes

This commit is contained in:
Dean Herbert 2022-04-28 18:17:29 +09:00
parent 3c9e520188
commit 9f6597695c

View File

@ -99,10 +99,10 @@ namespace osu.Game.Overlays.FirstRunSetup
importBeatmapsButton.Enabled.Value = false;
legacyImportManager?.ImportFromStableAsync(StableContent.Beatmaps).ContinueWith(t => Schedule(() =>
{
// TODO: can we know if the import was successful?
// if so we should turn the button green and disable it in that case alone.
// importBeatmapsButton.Enabled.Value = true;
importBeatmapsButton.Complete();
if (t.IsCompletedSuccessfully)
importBeatmapsButton.Complete();
else
importBeatmapsButton.Enabled.Value = true;
}));
}
},