Mark several long-running tasks as long-running

This commit is contained in:
Dean Herbert
2017-10-25 11:42:55 +09:00
parent 89cc7b7945
commit c765785d00
3 changed files with 4 additions and 3 deletions

View File

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