mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 11:20:04 +08:00
Move local back in place
This commit is contained in:
parent
89cf146d18
commit
446ce2590c
@ -24,8 +24,6 @@ namespace osu.Game.Updater
|
||||
// only implementations will actually check for updates.
|
||||
GetType() != typeof(UpdateManager);
|
||||
|
||||
private string lastVersion;
|
||||
|
||||
[Resolved]
|
||||
private OsuConfigManager config { get; set; }
|
||||
|
||||
@ -42,7 +40,7 @@ namespace osu.Game.Updater
|
||||
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user