Fix pleb stop reset
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/CoinJoinStateViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/CoinJoinStateViewModel.cs
@@ -224,7 +224,6 @@ public partial class CoinJoinStateViewModel : ViewModelBase
PlayVisible = true;
_wallet.AllowManualCoinJoin = false;
CurrentStatus = _stoppedMessage;
- _overridePlebStop = false;
await coinJoinManager.StopAsync(_wallet, CancellationToken.None);
})
@@ -255,7 +254,8 @@ public partial class CoinJoinStateViewModel : ViewModelBase
.OnEntry(UpdateAndShowWalletMixedProgress)
.OnTrigger(Trigger.BalanceChanged, UpdateAndShowWalletMixedProgress)
.OnTrigger(Trigger.RoundFinished, async () => await coinJoinManager.StartAsync(_wallet, _overridePlebStop, CancellationToken.None))
- .OnTrigger(Trigger.Timer, UpdateCountDown);
+ .OnTrigger(Trigger.Timer, UpdateCountDown)
+ .OnTrigger(Trigger.Stop, () => _overridePlebStop = false);
_stateMachine.Configure(State.ManualPlayingCritical)
.SubstateOf(State.ManualPlaying)
@@ -356,8 +356,6 @@ public partial class CoinJoinStateViewModel : ViewModelBase
PauseVisible = false;
PlayVisible = true;
- _overridePlebStop = false;
-
await coinJoinManager.StopAsync(_wallet, CancellationToken.None);
})
.OnEntry(UpdateAndShowWalletMixedProgress)
@@ -387,7 +385,8 @@ public partial class CoinJoinStateViewModel : ViewModelBase
.Custom(HandleMessages)
.OnEntry(UpdateAndShowWalletMixedProgress)
.OnTrigger(Trigger.BalanceChanged, UpdateAndShowWalletMixedProgress)
- .OnTrigger(Trigger.Timer, UpdateCountDown);
+ .OnTrigger(Trigger.Timer, UpdateCountDown)
+ .OnTrigger(Trigger.Pause, () => _overridePlebStop = false);
_stateMachine.Configure(State.AutoPlayingCritical)
.SubstateOf(State.AutoPlaying)

Fix pleb stop reset