Initial commit

This commit is contained in:
Craftplacer
2020-05-07 08:07:22 +02:00
parent c8134162b5
commit 836efe3f7c
4 changed files with 24 additions and 3 deletions

View File

@ -37,10 +37,12 @@ namespace osu.Desktop.Updater
if (game.IsDeployedBuild)
{
Splat.Locator.CurrentMutable.Register(() => new SquirrelLogger(), typeof(Splat.ILogger));
Schedule(() => Task.Run(() => checkForUpdateAsync()));
CheckForUpdate();
}
}
public override void CheckForUpdate() => Schedule(() => Task.Run(() => checkForUpdateAsync()));
private async void checkForUpdateAsync(bool useDeltaPatching = true, UpdateProgressNotification notification = null)
{
// should we schedule a retry on completion of this check?