Only invoke OnUpdateAvailable if update available
This commit is contained in:
parent
327de18b8c
commit
bb7066dd41
1 changed files with 4 additions and 3 deletions
|
|
@ -23,11 +23,12 @@ namespace LANCommander.Client.Services
|
|||
|
||||
public async Task<SemVersion> CheckForUpdateAsync()
|
||||
{
|
||||
var serverVersion = await Client.Launcher.CheckForUpdateAsync();
|
||||
var updateVersion = await Client.Launcher.CheckForUpdateAsync();
|
||||
|
||||
OnUpdateAvailable?.Invoke(serverVersion);
|
||||
if (updateVersion != null)
|
||||
OnUpdateAvailable?.Invoke(updateVersion);
|
||||
|
||||
return serverVersion;
|
||||
return updateVersion;
|
||||
}
|
||||
|
||||
public async Task UpdateAsync(SemVersion version)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue