Add version texts
MODIFY
WalletWasabi.Gui/CommandLine/CommandInterpreter.cs
WalletWasabi.Gui/CommandLine/CommandInterpreter.cs
@@ -72,6 +72,8 @@ namespace WalletWasabi.Gui.CommandLine
{
Console.WriteLine($"Wasabi Client Version: {Constants.ClientVersion}");
Console.WriteLine($"Compatible Coordinator Version: {Constants.BackendMajorVersion}");
+ Console.WriteLine($"Compatible Bitcoin Core Version: {Constants.BitcoinCoreVersion}");
+ Console.WriteLine($"Compatible Hardware Wallet Interface Version: {Constants.HwiVersion}");
}
private static void ShowHelp(OptionSet p)

ADD
WalletWasabi.Gui/Converters/VersionStringConverter.cs
+using Avalonia.Data.Converters;
+using System;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Text;
+using WalletWasabi.Exceptions;
+
+namespace WalletWasabi.Gui.Converters
+{
+ public class VersionStringConverter : IValueConverter
+ {
+ public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
+ {
+ if (value is Version version)
+ {
+ // When the amount starts with a '~' then Max is selected
+ return version.ToString();
+ }
+ else
+ {
+ throw new TypeArgumentException(value, typeof(Version), nameof(value));
+ }
+ }
+
+ public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
+ {
+ return Version.Parse(value as string);
+ }
+ }
+}

MODIFY
WalletWasabi.Gui/Tabs/AboutViewModel.cs
WalletWasabi.Gui/Tabs/AboutViewModel.cs
@@ -19,8 +19,6 @@ namespace WalletWasabi.Gui.Tabs
public AboutViewModel(Global global) : base(global, "About")
{
- Version = Constants.ClientVersion;
-
OpenBrowserCommand = ReactiveCommand.Create<string>(x =>
{
try
@@ -34,9 +32,10 @@ namespace WalletWasabi.Gui.Tabs
});
}
- public Version Version { get; }
-
- public string VersionText => $"v{Version}";
+ public Version ClientVersion => Constants.ClientVersion;
+ public string BackendMajorVersion => Constants.BackendMajorVersion;
+ public Version BitcoinCoreVersion => Constants.BitcoinCoreVersion;
+ public Version HwiVersion => Constants.HwiVersion;
public string ClearnetLink => "https://wasabiwallet.io/";

Add version texts