Skip the first whenanyvalue
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/CoinJoinStateViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/CoinJoinStateViewModel.cs
@@ -119,6 +119,7 @@ public partial class CoinJoinStateViewModel : ViewModelBase
});
walletVm.Settings.WhenAnyValue(x => x.AutoCoinJoin)
+ .Skip(1) // The first one is triggered at the creation.
.SubscribeAsync(async (autoCoinJoin) =>
{
if (autoCoinJoin)
@@ -313,14 +314,6 @@ public partial class CoinJoinStateViewModel : ViewModelBase
_stateMachine.Fire(Trigger.WalletStoppedCoinJoin);
break;
- case CompletedEventArgs:
-
- break;
-
- case StartedEventArgs:
-
- break;
-
case StartErrorEventArgs start when start.Error is CoinjoinError.NotEnoughUnprivateBalance:
_stateMachine.Fire(Trigger.PlebStopActivated);
break;

Skip the first whenanyvalue