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
1 changed files with 4 additions and 4 deletions

View File

@ -99,10 +99,10 @@ private void load(OverlayColourProvider overlayColourProvider, LegacyImportManag
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;
}));
}
},