use `canExecute` instead.
MODIFY
WalletWasabi.Gui/ViewModels/StatusBarViewModel.cs
WalletWasabi.Gui/ViewModels/StatusBarViewModel.cs
@@ -191,18 +191,15 @@ namespace WalletWasabi.Gui.ViewModels
UpdateCommand = ReactiveCommand.Create(() =>
{
try
- {
- if (UpdateAvailable || CriticalUpdateAvailable)
{
IoHelpers.OpenBrowser("https://wasabiwallet.io/#download");
}
- }
catch (Exception ex)
{
Logger.LogWarning(ex);
IoC.Get<IShell>().AddOrSelectDocument(() => new AboutViewModel(Global));
}
- });
+ }, this.WhenAnyValue(x => x.UpdateAvailable, x => x.CriticalUpdateAvailable, (x, y) => x || y));
this.RaisePropertyChanged(nameof(UpdateCommand)); // The binding happens after the constructor. So, if the command is not in constructor, then we need this line.

use `canExecute` instead.