rename for better readability
MODIFY
WalletWasabi.Fluent/Models/UiTriggers.cs
WalletWasabi.Fluent/Models/UiTriggers.cs
@@ -22,7 +22,7 @@ public class UiTriggers
/// <summary>
/// Triggers on subscription and when a transaction to the wallet is processed.
/// </summary>
- public IObservable<Unit> WalletRelevantTransactionProcessed =>
+ public IObservable<Unit> TransactionsUpdateTrigger =>
Observable.FromEventPattern(_wallet.TransactionProcessor, nameof(TransactionProcessor.WalletRelevantTransactionProcessed)).ToSignal().StartWith(Unit.Default);
/// <summary>
@@ -38,10 +38,10 @@ public class UiTriggers
/// <summary>
/// Triggers on subscription and when a transaction is processed to the wallet or the USD exchange rate changed.
/// </summary>
- public IObservable<Unit> BalanceUpdateTrigger => WalletRelevantTransactionProcessed.Merge(UsdExchangeRateChanged);
+ public IObservable<Unit> BalanceUpdateTrigger => TransactionsUpdateTrigger.Merge(UsdExchangeRateChanged);
/// <summary>
/// Triggers on subscription and when a transaction is processed to the wallet or the anon score target changed.
/// </summary>
- public IObservable<Unit> PrivacyProgressUpdateTrigger => WalletRelevantTransactionProcessed.Merge(AnonScoreTargetChanged);
+ public IObservable<Unit> PrivacyProgressUpdateTrigger => TransactionsUpdateTrigger.Merge(AnonScoreTargetChanged);
}

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Advanced/WalletCoins/WalletCoinsViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Advanced/WalletCoins/WalletCoinsViewModel.cs
@@ -39,7 +39,7 @@ public partial class WalletCoinsViewModel : RoutableViewModel
protected override void OnNavigatedTo(bool isInHistory, CompositeDisposable disposables)
{
- var coins = CreateCoinsObservable(_walletVm.UiTriggers.WalletRelevantTransactionProcessed);
+ var coins = CreateCoinsObservable(_walletVm.UiTriggers.TransactionsUpdateTrigger);
var coinChanges = coins
.ToObservableChangeSet(c => c.HdPubKey.GetHashCode())

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/CoinJoinStateViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/CoinJoinStateViewModel.cs
@@ -90,7 +90,7 @@ public partial class CoinJoinStateViewModel : ViewModelBase
ConfigureStateMachine();
- walletVm.UiTriggers.WalletRelevantTransactionProcessed.Subscribe(_ => _stateMachine.Fire(Trigger.BalanceChanged));
+ walletVm.UiTriggers.TransactionsUpdateTrigger.Subscribe(_ => _stateMachine.Fire(Trigger.BalanceChanged));
PlayCommand = ReactiveCommand.CreateFromTask(async () =>
{

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/Details/TransactionDetailsViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/Details/TransactionDetailsViewModel.cs
@@ -74,7 +74,7 @@ public partial class TransactionDetailsViewModel : RoutableViewModel
{
base.OnNavigatedTo(isInHistory, disposables);
- _walletVm.UiTriggers.WalletRelevantTransactionProcessed
+ _walletVm.UiTriggers.TransactionsUpdateTrigger
.DoAsync(async _ => await UpdateCurrentTransactionAsync())
.Subscribe()
.DisposeWith(disposables);

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/HistoryItems/CoinJoinHistoryItemViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/HistoryItems/CoinJoinHistoryItemViewModel.cs
@@ -40,7 +40,7 @@ public class CoinJoinHistoryItemViewModel : HistoryItemViewModelBase
ShowDetailsCommand = ReactiveCommand.Create(() =>
RoutableViewModel.Navigate(NavigationTarget.DialogScreen).To(
- new CoinJoinDetailsViewModel(this, walletVm.UiTriggers.WalletRelevantTransactionProcessed)));
+ new CoinJoinDetailsViewModel(this, walletVm.UiTriggers.TransactionsUpdateTrigger)));
DateString = $"{Date.ToLocalTime():MM/dd/yyyy HH:mm}";
}

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/HistoryItems/CoinJoinsHistoryItemViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/HistoryItems/CoinJoinsHistoryItemViewModel.cs
@@ -28,7 +28,7 @@ public class CoinJoinsHistoryItemViewModel : HistoryItemViewModelBase
ShowDetailsCommand = ReactiveCommand.Create(() =>
RoutableViewModel.Navigate(NavigationTarget.DialogScreen).To(
- new CoinJoinsDetailsViewModel(this, walletVm.UiTriggers.WalletRelevantTransactionProcessed)));
+ new CoinJoinsDetailsViewModel(this, walletVm.UiTriggers.TransactionsUpdateTrigger)));
Add(firstItem);
}

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/HistoryViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/HistoryViewModel.cs
@@ -206,7 +206,7 @@ public partial class HistoryViewModel : ActivatableViewModel
{
base.OnActivated(disposables);
- _walletVm.UiTriggers.WalletRelevantTransactionProcessed
+ _walletVm.UiTriggers.TransactionsUpdateTrigger
.DoAsync(async _ => await UpdateAsync())
.Subscribe()
.DisposeWith(disposables);

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/WalletViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/WalletViewModel.cs
@@ -55,7 +55,7 @@ public partial class WalletViewModel : WalletViewModelBase
UiTriggers = new UiTriggers(this);
History = new HistoryViewModel(this);
- UiTriggers.WalletRelevantTransactionProcessed
+ UiTriggers.TransactionsUpdateTrigger
.Subscribe(_ => IsWalletBalanceZero = wallet.Coins.TotalAmount() == Money.Zero)
.DisposeWith(Disposables);

rename for better readability