Skip to content

Commit

Permalink
Fix remaining issues
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Jun 28, 2019
1 parent 1289b7f commit c9104e9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions osu.Desktop/Updater/SquirrelUpdateManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class SquirrelUpdateManager : Component
private UpdateManager updateManager;
private NotificationOverlay notificationOverlay;

public Task PrepareUpdate() => UpdateManager.RestartAppWhenExited();
public Task PrepareUpdateAsync() => UpdateManager.RestartAppWhenExited();

[BackgroundDependencyLoader]
private void load(NotificationOverlay notification, OsuGameBase game)
Expand Down Expand Up @@ -86,8 +86,7 @@ private async void checkForUpdateAsync(bool useDeltaPatching = true, UpdateProgr
}
else
{
if (notification != null)
notification.State = ProgressNotificationState.Cancelled;
notification.State = ProgressNotificationState.Cancelled;
Logger.Error(e, @"update failed!");
}
}
Expand Down Expand Up @@ -130,7 +129,7 @@ protected override Notification CreateCompletionNotification()
Activated = () =>
{
updateManager.PrepareUpdateAsync()
.ContinueWith(_ => Schedule(() => game.GracefullyExit()));
.ContinueWith(_ => Schedule(() => game.GracefullyExit()));
return true;
}
};
Expand Down

0 comments on commit c9104e9

Please sign in to comment.