fix code placed in wrong place.
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/CoinJoinStateViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/CoinJoinStateViewModel.cs
@@ -320,7 +320,6 @@ public partial class CoinJoinStateViewModel : ViewModelBase
.Permit(Trigger.AutoStartTimeout, State.AutoPlaying)
.Permit(Trigger.Play, State.AutoPlaying)
.Permit(Trigger.RoundStartFailed, State.AutoFinished)
- .Permit(Trigger.EnterCriticalPhaseMessage, State.AutoPlayingCritical)
.OnEntry(() =>
{
PlayVisible = true;
@@ -335,18 +334,6 @@ public partial class CoinJoinStateViewModel : ViewModelBase
IsAutoWaiting = false;
});
- _stateMachine.Configure(State.AutoPlayingCritical)
- .SubstateOf(State.AutoPlaying)
- .Permit(Trigger.ExitCriticalPhaseMessage, State.AutoPlaying)
- .OnEntry(() =>
- {
- PauseVisible = false;
- })
- .OnExit(() =>
- {
- PauseVisible = true;
- });
-
_stateMachine.Configure(State.Paused)
.SubstateOf(State.AutoCoinJoin)
.Permit(Trigger.Play, State.AutoPlaying)
@@ -374,6 +361,7 @@ public partial class CoinJoinStateViewModel : ViewModelBase
.Permit(Trigger.Pause, State.Paused)
.Permit(Trigger.PlebStop, State.AutoFinishedPlebStop)
.Permit(Trigger.RoundStartFailed, State.AutoFinished)
+ .Permit(Trigger.EnterCriticalPhaseMessage, State.AutoPlayingCritical)
.OnEntry(async () =>
{
CurrentStatus = _waitingMessage;
@@ -394,6 +382,18 @@ public partial class CoinJoinStateViewModel : ViewModelBase
.OnTrigger(Trigger.BalanceChanged, UpdateAndShowWalletMixedProgress)
.OnTrigger(Trigger.Timer, UpdateCountDown);
+ _stateMachine.Configure(State.AutoPlayingCritical)
+ .SubstateOf(State.AutoPlaying)
+ .Permit(Trigger.ExitCriticalPhaseMessage, State.AutoPlaying)
+ .OnEntry(() =>
+ {
+ PauseVisible = false;
+ })
+ .OnExit(() =>
+ {
+ PauseVisible = true;
+ });
+
_stateMachine.Configure(State.AutoFinished)
.SubstateOf(State.AutoCoinJoin)
.Permit(Trigger.RoundStart, State.AutoPlaying)

fix code placed in wrong place.