prevent showing auto start message when there wont be auto start.
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/CoinJoinStateViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/CoinJoinStateViewModel.cs
@@ -224,11 +224,18 @@ public partial class CoinJoinStateViewModel : ViewModelBase
.Permit(Trigger.Play, State.AutoPlaying)
.OnEntry(() =>
{
- UpdateCountDown();
-
PlayVisible = true;
IsAutoWaiting = true;
+
+ if (AutoStartTimedOut)
+ {
+ _stateMachine.Fire(Trigger.AutoStartTimeout);
+ }
+ else
+ {
CurrentStatus = _countDownMessage;
+ UpdateCountDown();
+ }
})
.OnTrigger(Trigger.Timer, UpdateCountDown)
.OnExit(() =>
@@ -287,6 +294,8 @@ public partial class CoinJoinStateViewModel : ViewModelBase
});
}
+ private bool AutoStartTimedOut => GetRemainingTime() <= TimeSpan.Zero;
+
private void UpdateCountDown()
{
var format = @"hh\:mm\:ss";
@@ -294,7 +303,7 @@ public partial class CoinJoinStateViewModel : ViewModelBase
RemainingTime = $"-{GetRemainingTime().ToString(format)}";
ProgressValue = GetPercentage();
- if (GetRemainingTime() <= TimeSpan.Zero)
+ if (AutoStartTimedOut)
{
_stateMachine.Fire(Trigger.AutoStartTimeout);
}

prevent showing auto start message when there wont be auto start.