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:
parent
3c9e520188
commit
9f6597695c
@ -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;
|
||||
}));
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user