1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-15 15:17:44 +08:00

Remove unnecessary runOutsideOfGameplay call

This commit is contained in:
Dean Herbert 2024-10-07 17:04:52 +09:00
parent a41c6dce04
commit 1f45b2134f
No known key found for this signature in database

View File

@ -63,17 +63,14 @@ namespace osu.Desktop.Updater
// Velopack does support this scenario (see https://github.com/ppy/osu/pull/28743#discussion_r1743495975). // Velopack does support this scenario (see https://github.com/ppy/osu/pull/28743#discussion_r1743495975).
if (pendingUpdate != null) if (pendingUpdate != null)
{ {
runOutsideOfGameplay(() => // If there is an update pending restart, show the notification to restart again.
notificationOverlay.Post(new UpdateApplicationCompleteNotification
{ {
// If there is an update pending restart, show the notification to restart again. Activated = () =>
notificationOverlay.Post(new UpdateApplicationCompleteNotification
{ {
Activated = () => Task.Run(restartToApplyUpdate);
{ return true;
Task.Run(restartToApplyUpdate); }
return true;
}
});
}); });
return true; return true;