Add todo about fixing stutter on update application

This commit is contained in:
Dean Herbert 2024-09-04 16:08:18 +09:00
parent b61023385a
commit e564e8c048
No known key found for this signature in database
1 changed files with 2 additions and 0 deletions

View File

@ -121,6 +121,8 @@ private async Task<bool> checkForUpdateAsync(UpdateProgressNotification? notific
private bool restartToApplyUpdate()
{
// TODO: Migrate this to async flow whenever available (see https://github.com/ppy/osu/pull/28743#discussion_r1740505665).
// Currently there's an internal Thread.Sleep(300) which will cause a stutter when the user clicks to restart.
updateManager.WaitExitThenApplyUpdates(pendingUpdate?.TargetFullRelease);
Schedule(() => game.AttemptExit());
return true;