Fix stutter during update process

This commit is contained in:
Dean Herbert
2019-06-28 20:45:25 +09:00
parent d557737143
commit 1898a6750d

View File

@ -133,8 +133,8 @@ namespace osu.Desktop.Updater
Text = @"Update ready to install. Click to restart!", Text = @"Update ready to install. Click to restart!",
Activated = () => Activated = () =>
{ {
updateManager.PrepareUpdate(); updateManager.PrepareUpdateAsync()
game.GracefullyExit(); .ContinueWith(_ => Schedule(() => game.GracefullyExit()));
return true; return true;
} }
}; };