Move browsercommand
MODIFY
WalletWasabi.Gui/Tabs/WalletManager/HardwareWallets/ConnectHardwareWalletViewModel.cs
WalletWasabi.Gui/Tabs/WalletManager/HardwareWallets/ConnectHardwareWalletViewModel.cs
@@ -94,12 +94,10 @@ namespace WalletWasabi.Gui.Tabs.WalletManager.HardwareWallets
});
EnumerateHardwareWalletsCommand = ReactiveCommand.CreateFromTask(async () => await EnumerateIfHardwareWalletsAsync());
+ OpenBrowserCommand = ReactiveCommand.CreateFromTask<string>(IoHelpers.OpenBrowserAsync);
Observable
.Merge(OpenBrowserCommand.ThrownExceptions)
- .Merge(LoadCommand.ThrownExceptions)
- .Merge(TestPasswordCommand.ThrownExceptions)
- .Merge(OpenFolderCommand.ThrownExceptions)
.Merge(ImportColdcardCommand.ThrownExceptions)
.Merge(EnumerateHardwareWalletsCommand.ThrownExceptions)
.ObserveOn(RxApp.TaskpoolScheduler)
@@ -112,6 +110,7 @@ namespace WalletWasabi.Gui.Tabs.WalletManager.HardwareWallets
public ReactiveCommand<Unit, Unit> ImportColdcardCommand { get; set; }
public ReactiveCommand<Unit, Unit> EnumerateHardwareWalletsCommand { get; set; }
+ public ReactiveCommand<string, Unit> OpenBrowserCommand { get; }
private Global Global { get; }
private WalletManagerViewModel Owner { get; }
}

MODIFY
WalletWasabi.Gui/Tabs/WalletManager/LoadWallets/LoadWalletView.xaml
WalletWasabi.Gui/Tabs/WalletManager/LoadWallets/LoadWalletView.xaml
</i:Interaction.Behaviors>
</controls:TogglePasswordBox>
</StackPanel>
- <StackPanel IsVisible="{Binding IsHardwareWallet}" Spacing="8">
- <StackPanel>
- <TextBlock Text="Limitations?" FontWeight="Bold" />
- <TextBlock Text="- Currently all hardware wallets are incompatible with coinjoins." />
- <TextBlock Text="- Only bech32 keypaths are supported, your legacy hardware wallet transactions won't show up." />
- </StackPanel>
- <StackPanel>
- <TextBlock Text="Which hardware wallets are supported?" FontWeight="Bold" />
- <TextBlock Text="- Coldcard, Ledger Nano S, Trezor One, and Trezor T." TextWrapping="Wrap" />
- <TextBlock Text="- While other hardware wallets may work, they were not tested by Wasabi developers." TextWrapping="Wrap" />
- </StackPanel>
- </StackPanel>
</Grid>
</controls:GroupBox>
<DockPanel LastChildFill="True" Margin="20 10">
</StackPanel>
<controls:GroupBox Title="{Binding Title}" TextBlock.FontSize="30" Padding="20" BorderThickness="0">
<DockPanel LastChildFill="True">
- <Grid Classes="content" DockPanel.Dock="Top" IsVisible="{Binding IsHwWalletSearchTextVisible}" Margin="10">
- <StackPanel Spacing="8">
- <StackPanel Orientation="Horizontal">
- <controls:Spinner Height="15" Width="15" Margin="0 0 8 0" />
- <TextBlock Text="Looking for hardware wallets..." FontWeight="Bold" />
- </StackPanel>
- <TextBlock Text="Be sure to set up and log into the device, usually with a PIN." TextWrapping="Wrap" />
- <TextBlock Text="Hardware wallets are picky about their USB cables, so try out multiple ones." TextWrapping="Wrap" />
- <TextBlock IsVisible="{Binding IsLinux}" Text="Make sure that you properly applied udev rules. These are necessary for the devices to be reachable on Linux environments:" TextWrapping="Wrap" />
- <StackPanel IsVisible="{Binding IsLinux}" Orientation="Horizontal">
- <Button Content="{Binding UDevRulesLink}" Classes="activeHyperLink" Command="{Binding OpenBrowserCommand}" CommandParameter="{Binding UDevRulesLink}" />
- </StackPanel>
- </StackPanel>
- </Grid>
<Grid Classes="content">
<controls:ExtendedListBox Items="{Binding Wallets}" SelectedItem="{Binding SelectedWallet, Mode=TwoWay}">
<controls:ExtendedListBox.ItemTemplate>

MODIFY
WalletWasabi.Gui/Tabs/WalletManager/LoadWallets/LoadWalletViewModel.cs
WalletWasabi.Gui/Tabs/WalletManager/LoadWallets/LoadWalletViewModel.cs
@@ -74,10 +74,8 @@ namespace WalletWasabi.Gui.Tabs.WalletManager.LoadWallets
LoadCommand = ReactiveCommand.CreateFromTask(LoadWalletAsync, this.WhenAnyValue(x => x.CanLoadWallet));
TestPasswordCommand = ReactiveCommand.CreateFromTask(LoadKeyManagerAsync, this.WhenAnyValue(x => x.CanTestPassword));
OpenFolderCommand = ReactiveCommand.Create(OpenWalletsFolder);
- OpenBrowserCommand = ReactiveCommand.CreateFromTask<string>(IoHelpers.OpenBrowserAsync);
Observable
- .Merge(OpenBrowserCommand.ThrownExceptions)
.Merge(LoadCommand.ThrownExceptions)
.Merge(TestPasswordCommand.ThrownExceptions)
.Merge(OpenFolderCommand.ThrownExceptions)
@@ -180,8 +178,6 @@ namespace WalletWasabi.Gui.Tabs.WalletManager.LoadWallets
public ReactiveCommand<Unit, Unit> LoadCommand { get; }
public ReactiveCommand<Unit, KeyManager> TestPasswordCommand { get; }
-
- public ReactiveCommand<string, Unit> OpenBrowserCommand { get; }
public ReactiveCommand<Unit, Unit> OpenFolderCommand { get; }
private WalletManagerViewModel Owner { get; }

Move browsercommand