Move local back in place

This commit is contained in:
Dean Herbert 2020-06-12 19:25:54 +09:00
parent 89cf146d18
commit 446ce2590c
1 changed files with 1 additions and 3 deletions

View File

@ -24,8 +24,6 @@ public class UpdateManager : CompositeDrawable
// only implementations will actually check for updates.
GetType() != typeof(UpdateManager);
private string lastVersion;
[Resolved]
private OsuConfigManager config { get; set; }
@ -42,7 +40,7 @@ protected override void LoadComplete()
Schedule(() => Task.Run(CheckForUpdateAsync));
// 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);
var lastVersion = config.Get<string>(OsuSetting.Version);
var version = game.Version;