get client version from UpdateStatus
MODIFY
WalletWasabi.Fluent/ViewModels/StatusBar/StatusBarViewModel.cs
WalletWasabi.Fluent/ViewModels/StatusBar/StatusBarViewModel.cs
@@ -153,11 +153,9 @@ namespace WalletWasabi.Fluent.ViewModels.StatusBar
Observable.FromEventPattern<UpdateStatus>(updateChecker, nameof(updateChecker.UpdateStatusChanged))
.ObserveOn(RxApp.MainThreadScheduler)
- .Subscribe(async e =>
+ .Subscribe(e =>
{
var updateStatus = e.EventArgs;
- var cancelToken = new CancellationTokenSource(TimeSpan.FromMinutes(1));
- var (clientVersion, _, _) = await updateChecker.WasabiClient.GetVersionsAsync(cancelToken.Token);
UpdateAvailable = !updateStatus.ClientUpToDate;
CriticalUpdateAvailable = !updateStatus.BackendCompatible;
@@ -168,7 +166,7 @@ namespace WalletWasabi.Fluent.ViewModels.StatusBar
}
else if (UpdateAvailable)
{
- VersionText = $"Version {clientVersion} is now available";
+ VersionText = $"Version {updateStatus.ClientVersion} is now available";
}
})
.DisposeWith(Disposables);

get client version from UpdateStatus