"Rescan" instead of "Continue" in Add HW Wallet view
MODIFY
WalletWasabi.Fluent/ViewModels/AddWallet/HardwareWallet/ConnectHardwareWalletViewModel.cs
WalletWasabi.Fluent/ViewModels/AddWallet/HardwareWallet/ConnectHardwareWalletViewModel.cs
@@ -25,6 +25,7 @@ public partial class ConnectHardwareWalletViewModel : RoutableViewModel
[AutoNotify] private bool _isSearching;
[AutoNotify] private bool _existingWalletFound;
[AutoNotify] private bool _confirmationRequired;
+ [AutoNotify] private string _nextLabel;
public ConnectHardwareWalletViewModel(string walletName)
{
@@ -46,6 +47,10 @@ public partial class ConnectHardwareWalletViewModel : RoutableViewModel
this.WhenAnyValue(x => x.Message)
.ObserveOn(RxApp.MainThreadScheduler)
.Subscribe(message => ConfirmationRequired = !string.IsNullOrEmpty(message));
+
+ this.WhenAnyValue(x => x.DetectedDevice)
+ .ObserveOn(RxApp.MainThreadScheduler)
+ .Subscribe(x => NextLabel = x is { } ? "Continue" : "Rescan");
}
private HwiEnumerateEntry? DetectedDevice { get; set; }

MODIFY
WalletWasabi.Fluent/Views/AddWallet/HardwareWallet/ConnectHardwareWalletView.axaml
WalletWasabi.Fluent/Views/AddWallet/HardwareWallet/ConnectHardwareWalletView.axaml
CancelContent="Cancel"
EnableCancel="{Binding EnableCancel}"
EnableBack="{Binding EnableBack}"
- EnableNext="{Binding ConfirmationRequired}" NextContent="Continue"
+ EnableNext="{Binding ConfirmationRequired}" NextContent="{Binding NextLabel}"
ScrollViewer.VerticalScrollBarVisibility="Disabled">
<DockPanel>
<Viewbox MaxHeight="150" DockPanel.Dock="Top" VerticalAlignment="Top" HorizontalAlignment="Center" Margin="0 30 0 0">

"Rescan" instead of "Continue" in Add HW Wallet view