use NavigateTo
MODIFY
WalletWasabi.Fluent/ViewModels/AddWallet/ConnectHardwareWalletViewModel.cs
WalletWasabi.Fluent/ViewModels/AddWallet/ConnectHardwareWalletViewModel.cs
@@ -26,7 +26,7 @@ namespace WalletWasabi.Fluent.ViewModels.AddWallet
private HardwareWalletViewModel? _selectedHardwareWallet;
public ConnectHardwareWalletViewModel(NavigationStateViewModel navigationState, string walletName, Network network,
- WalletManager walletManager, NavigationTarget navigationTarget) : base(navigationState, navigationTarget)
+ WalletManager walletManager) : base(navigationState, NavigationTarget.DialogScreen)
{
_walletName = walletName;
_network = network;

MODIFY
WalletWasabi.Fluent/ViewModels/AddWalletPageViewModel.cs
WalletWasabi.Fluent/ViewModels/AddWalletPageViewModel.cs
@@ -37,8 +37,7 @@ namespace WalletWasabi.Fluent.ViewModels
ConnectHardwareWalletCommand = ReactiveCommand.CreateFromTask(async () =>
{
- await navigationState.DialogScreen.Invoke().Router.Navigate.Execute(
- new ConnectHardwareWalletViewModel(navigationState, WalletName, network, walletManager, NavigationTarget.DialogScreen));
+ NavigateTo(new ConnectHardwareWalletViewModel(navigationState, WalletName, network, walletManager), NavigationTarget.DialogScreen);
});
CreateWalletCommand = ReactiveCommand.CreateFromTask(

use NavigateTo