wallets clear navigation stack during login.
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/ClosedWalletViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/ClosedWalletViewModel.cs
@@ -2,6 +2,7 @@ using System.Collections.ObjectModel;
using ReactiveUI;
using WalletWasabi.Fluent.ViewModels.Login;
using WalletWasabi.Fluent.ViewModels.NavBar;
+using WalletWasabi.Fluent.ViewModels.Navigation;
using WalletWasabi.Fluent.ViewModels.Wallets.HardwareWallet;
using WalletWasabi.Fluent.ViewModels.Wallets.WatchOnlyWallet;
using WalletWasabi.Wallets;
@@ -21,11 +22,11 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets
{
if (!Wallet.IsLoggedIn)
{
- Navigate().To(new LoginViewModel(walletManagerViewModel, this));
+ Navigate().To(new LoginViewModel(walletManagerViewModel, this), NavigationMode.Clear);
}
else
{
- Navigate().To(this);
+ Navigate().To(this, NavigationMode.Clear);
}
});
}

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/WalletViewModelBase.cs
WalletWasabi.Fluent/ViewModels/Wallets/WalletViewModelBase.cs
@@ -4,6 +4,7 @@ using System.Diagnostics.CodeAnalysis;
using System.Reactive.Disposables;
using System.Reactive.Linq;
using WalletWasabi.Fluent.ViewModels.NavBar;
+using WalletWasabi.Fluent.ViewModels.Navigation;
using WalletWasabi.Helpers;
using WalletWasabi.Wallets;
@@ -35,7 +36,7 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets
.Subscribe(x => WalletState = x.EventArgs)
.DisposeWith(_disposables);
- OpenCommand = ReactiveCommand.Create(() => Navigate().To(this));
+ OpenCommand = ReactiveCommand.Create(() => Navigate().To(this, NavigationMode.Clear));
}
public override string Title

wallets clear navigation stack during login.