Add a dialog offering to import beatmaps from stable

This commit is contained in:
Dean Herbert
2017-12-26 00:37:50 +09:00
parent 45e4c09cb8
commit 3c8d30f8e6
5 changed files with 52 additions and 6 deletions

View File

@ -30,8 +30,7 @@ namespace osu.Game.Overlays.Settings.Sections.Maintenance
Action = () =>
{
importButton.Enabled.Value = false;
Task.Factory.StartNew(beatmaps.ImportFromStable)
.ContinueWith(t => Schedule(() => importButton.Enabled.Value = true), TaskContinuationOptions.LongRunning);
beatmaps.ImportFromStable().ContinueWith(t => Schedule(() => importButton.Enabled.Value = true));
}
},
deleteButton = new DangerousSettingsButton