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

Rename method to be less bad

This commit is contained in:
Dean Herbert 2020-06-12 18:07:39 +09:00
parent 95f57ca88c
commit 6beb28b685
3 changed files with 4 additions and 4 deletions

View File

@ -37,7 +37,7 @@ namespace osu.Desktop.Updater
Splat.Locator.CurrentMutable.Register(() => new SquirrelLogger(), typeof(Splat.ILogger)); Splat.Locator.CurrentMutable.Register(() => new SquirrelLogger(), typeof(Splat.ILogger));
} }
protected override async Task InternalCheckForUpdateAsync() => await checkForUpdateAsync(); protected override async Task PerformUpdateCheck() => await checkForUpdateAsync();
private async Task checkForUpdateAsync(bool useDeltaPatching = true, UpdateProgressNotification notification = null) private async Task checkForUpdateAsync(bool useDeltaPatching = true, UpdateProgressNotification notification = null)
{ {

View File

@ -30,7 +30,7 @@ namespace osu.Game.Updater
version = game.Version; version = game.Version;
} }
protected override async Task InternalCheckForUpdateAsync() protected override async Task PerformUpdateCheck()
{ {
try try
{ {

View File

@ -49,10 +49,10 @@ namespace osu.Game.Updater
if (!CanCheckForUpdate) if (!CanCheckForUpdate)
return; return;
await InternalCheckForUpdateAsync(); await PerformUpdateCheck();
} }
protected virtual Task InternalCheckForUpdateAsync() protected virtual Task PerformUpdateCheck()
{ {
// Query last version only *once*, so the user can re-check for updates, in case they closed the notification or else. // Query last version only *once*, so the user can re-check for updates, in case they closed the notification or else.
lastVersion ??= config.Get<string>(OsuSetting.Version); lastVersion ??= config.Get<string>(OsuSetting.Version);