protected override void OnNavigatedTo(bool isInHistory, CompositeDisposable disposables) { base.OnNavigatedTo(isInHistory, disposables); Disposable.Create(() => { CancelCts.Cancel(); CancelCts.Dispose(); }) .DisposeWith(disposables); }
protected override void OnNavigatedTo(bool inStack, CompositeDisposable disposable) { base.OnNavigatedTo(inStack, disposable); Disposable.Create(() => { CancelCts.Cancel(); CancelCts.Dispose(); }) .DisposeWith(disposable); }
protected override void OnNavigatedTo(bool isInHistory, CompositeDisposable disposables) { base.OnNavigatedTo(isInHistory, disposables); var enableCancel = Services.WalletManager.HasWallet(); SetupCancel(enableCancel: false, enableCancelOnEscape: enableCancel, enableCancelOnPressed: false); disposables.Add(Disposable.Create(() => { CancelCts.Cancel(); CancelCts.Dispose(); })); }