Rename inStack to isInHistory
MODIFY
WalletWasabi.Fluent/ViewModels/AddWallet/AddWalletPageViewModel.cs
WalletWasabi.Fluent/ViewModels/AddWallet/AddWalletPageViewModel.cs
@@ -119,15 +119,15 @@ namespace WalletWasabi.Fluent.ViewModels.AddWallet
EnableAutoBusyOn(CreateWalletCommand);
}
- protected override void OnNavigatedTo(bool inStack, CompositeDisposable disposables)
+ protected override void OnNavigatedTo(bool isInHistory, CompositeDisposable disposables)
{
- base.OnNavigatedTo(inStack, disposables);
+ base.OnNavigatedTo(isInHistory, disposables);
_enableCancel = CurrentTarget != NavigationTarget.HomeScreen;
this.RaisePropertyChanged(WalletName);
- if (!inStack)
+ if (!isInHistory)
{
WalletName = "";
}

MODIFY
WalletWasabi.Fluent/ViewModels/AddWallet/HardwareWallet/ConnectHardwareWalletViewModel.cs
WalletWasabi.Fluent/ViewModels/AddWallet/HardwareWallet/ConnectHardwareWalletViewModel.cs
@@ -204,11 +204,11 @@ namespace WalletWasabi.Fluent.ViewModels.AddWallet.HardwareWallet
Navigate().To(new DetectedHardwareWalletViewModel(WalletManager, WalletName, device));
}
- protected override void OnNavigatedTo(bool inStack, CompositeDisposable disposables)
+ protected override void OnNavigatedTo(bool isInHistory, CompositeDisposable disposables)
{
- base.OnNavigatedTo(inStack, disposables);
+ base.OnNavigatedTo(isInHistory, disposables);
- if (inStack)
+ if (isInHistory)
{
CancelCts = new CancellationTokenSource();
}

MODIFY
WalletWasabi.Fluent/ViewModels/AddWallet/HardwareWallet/DetectedHardwareWalletViewModel.cs
WalletWasabi.Fluent/ViewModels/AddWallet/HardwareWallet/DetectedHardwareWalletViewModel.cs
@@ -66,9 +66,9 @@ namespace WalletWasabi.Fluent.ViewModels.AddWallet.HardwareWallet
public ICommand NoCommand { get; }
- protected override void OnNavigatedTo(bool inStack, CompositeDisposable disposables)
+ protected override void OnNavigatedTo(bool isInHistory, CompositeDisposable disposables)
{
- base.OnNavigatedTo(inStack, disposables);
+ base.OnNavigatedTo(isInHistory, disposables);
Disposable.Create(() =>
{

MODIFY
WalletWasabi.Fluent/ViewModels/Login/PasswordFinder/SearchPasswordViewModel.cs
WalletWasabi.Fluent/ViewModels/Login/PasswordFinder/SearchPasswordViewModel.cs
@@ -30,9 +30,9 @@ namespace WalletWasabi.Fluent.ViewModels.Login.PasswordFinder
public PasswordFinderOptions Options { get; }
- protected override void OnNavigatedTo(bool inStack, CompositeDisposable disposables)
+ protected override void OnNavigatedTo(bool isInHistory, CompositeDisposable disposables)
{
- base.OnNavigatedTo(inStack, disposables);
+ base.OnNavigatedTo(isInHistory, disposables);
var cancelToken = new CancellationTokenSource();

MODIFY
WalletWasabi.Fluent/ViewModels/Navigation/RoutableViewModel.cs
WalletWasabi.Fluent/ViewModels/Navigation/RoutableViewModel.cs
@@ -36,7 +36,7 @@ namespace WalletWasabi.Fluent.ViewModels.Navigation
public ICommand CancelCommand { get; protected set; }
- private void DoNavigateTo(bool inStack)
+ private void DoNavigateTo(bool isInHistory)
{
if (_currentDisposable is { })
{
@@ -45,10 +45,10 @@ namespace WalletWasabi.Fluent.ViewModels.Navigation
_currentDisposable = new CompositeDisposable();
- OnNavigatedTo(inStack, _currentDisposable);
+ OnNavigatedTo(isInHistory, _currentDisposable);
}
- protected virtual void OnNavigatedTo(bool inStack, CompositeDisposable disposables)
+ protected virtual void OnNavigatedTo(bool isInHistory, CompositeDisposable disposables)
{
}

MODIFY
WalletWasabi.Fluent/ViewModels/Settings/SettingsPageViewModel.cs
WalletWasabi.Fluent/ViewModels/Settings/SettingsPageViewModel.cs
@@ -39,9 +39,9 @@ namespace WalletWasabi.Fluent.ViewModels.Settings
IsModified = e.IsRestartNeeded;
}
- protected override void OnNavigatedTo(bool inStack, CompositeDisposable disposables)
+ protected override void OnNavigatedTo(bool isInHistory, CompositeDisposable disposables)
{
- base.OnNavigatedTo(inStack, disposables);
+ base.OnNavigatedTo(isInHistory, disposables);
SettingsTabViewModelBase.RestartNeeded += OnRestartNeeded;

MODIFY
WalletWasabi.Fluent/ViewModels/TriggerCommandViewModel.cs
WalletWasabi.Fluent/ViewModels/TriggerCommandViewModel.cs
@@ -8,14 +8,14 @@ namespace WalletWasabi.Fluent.ViewModels
{
public abstract ICommand TargetCommand { get; }
- protected override void OnNavigatedTo(bool inStack, CompositeDisposable disposables)
+ protected override void OnNavigatedTo(bool isInHistory, CompositeDisposable disposables)
{
if (TargetCommand.CanExecute(null))
{
TargetCommand.Execute(null);
}
Navigate().Back();
- base.OnNavigatedTo(inStack, disposables);
+ base.OnNavigatedTo(isInHistory, disposables);
}
}
}
\ No newline at end of file

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Receive/ReceiveAddressesViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Receive/ReceiveAddressesViewModel.cs
@@ -41,9 +41,9 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Receive
public Wallet Wallet { get; }
- protected override void OnNavigatedTo(bool inStack, CompositeDisposable disposables)
+ protected override void OnNavigatedTo(bool isInHistory, CompositeDisposable disposables)
{
- base.OnNavigatedTo(inStack, disposables);
+ base.OnNavigatedTo(isInHistory, disposables);
Observable
.FromEventPattern(Wallet.TransactionProcessor, nameof(Wallet.TransactionProcessor.WalletRelevantTransactionProcessed))

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Receive/ReceiveViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Receive/ReceiveViewModel.cs
@@ -61,9 +61,9 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Receive
public ICommand ShowExistingAddressesCommand { get; }
- protected override void OnNavigatedTo(bool inStack, CompositeDisposable disposable)
+ protected override void OnNavigatedTo(bool isInHistory, CompositeDisposable disposable)
{
- base.OnNavigatedTo(inStack, disposable);
+ base.OnNavigatedTo(isInHistory, disposable);
IsExistingAddressesButtonVisible = WasabiWallet.KeyManager.GetKeys(x => !x.Label.IsEmpty && !x.IsInternal && x.KeyState == KeyState.Clean).Any();
Reference = "";

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Send/SendViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Send/SendViewModel.cs
@@ -227,7 +227,7 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
return result;
}
- protected override void OnNavigatedTo(bool inStack, CompositeDisposable disposables)
+ protected override void OnNavigatedTo(bool isInHistory, CompositeDisposable disposables)
{
_owner.Wallet.Synchronizer.WhenAnyValue(x => x.UsdExchangeRate)
.ObserveOn(RxApp.MainThreadScheduler)
@@ -255,7 +255,7 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
UpdateFeeEstimates(_owner.Wallet.Synchronizer.AllFeeEstimate.Estimations);
}
- base.OnNavigatedTo(inStack, disposables);
+ base.OnNavigatedTo(isInHistory, disposables);
}
private void UpdateFeeEstimates(Dictionary<int, int> feeEstimates)

Rename inStack to isInHistory