mirror of https://github.com/ppy/osu
Only mark stable import complete if it actually completes
This commit is contained in:
parent
3c9e520188
commit
9f6597695c
|
@ -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;
|
||||
}));
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue