set page `IsActive` to false when navigate away
MODIFY
WalletWasabi.Fluent/ViewModels/Navigation/TargettedNavigationStack.cs
WalletWasabi.Fluent/ViewModels/Navigation/TargettedNavigationStack.cs
@@ -55,6 +55,11 @@ public class TargettedNavigationStack : NavigationStack<RoutableViewModel>
{
base.OnNavigated(oldPage, oldInStack, newPage, newInStack);
+ if (oldPage is { } && oldPage != newPage)
+ {
+ oldPage.IsActive = false;
+ }
+
if (newPage is { })
{
newPage.CurrentTarget = _target;

set page `IsActive` to false when navigate away