mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 08:27:49 +08:00
Rename method to be less bad
This commit is contained in:
parent
95f57ca88c
commit
6beb28b685
@ -37,7 +37,7 @@ namespace osu.Desktop.Updater
|
||||
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)
|
||||
{
|
||||
|
@ -30,7 +30,7 @@ namespace osu.Game.Updater
|
||||
version = game.Version;
|
||||
}
|
||||
|
||||
protected override async Task InternalCheckForUpdateAsync()
|
||||
protected override async Task PerformUpdateCheck()
|
||||
{
|
||||
try
|
||||
{
|
||||
|
@ -49,10 +49,10 @@ namespace osu.Game.Updater
|
||||
if (!CanCheckForUpdate)
|
||||
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.
|
||||
lastVersion ??= config.Get<string>(OsuSetting.Version);
|
||||
|
Loading…
Reference in New Issue
Block a user