show progress when auto start is counting down.
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/CoinJoinStateViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/CoinJoinStateViewModel.cs
@@ -209,10 +209,23 @@ public partial class CoinJoinStateViewModel : ViewModelBase
private void OnTimerTick()
{
- if (_coinJoinManager.WhenWalletCanStartAutoCoinJoin(_wallet) < DateTimeOffset.Now)
+ if (_machine.State == State.AutoStarting)
+ {
+ var whenCanAutoStart = _coinJoinManager.WhenWalletCanStartAutoCoinJoin(_wallet);
+
+ if (whenCanAutoStart < DateTimeOffset.Now)
{
_machine.Fire(Trigger.AutoPlayTimeout);
}
+ else
+ {
+ var end = whenCanAutoStart;
+ var total = (end - _countDownStartTime).TotalSeconds;
+
+ var percentage = (DateTime.Now - _countDownStartTime).TotalSeconds * 100 / total;
+ ProgressValue = percentage;
+ }
+ }
}
private void OnExitManualCoinJoin()

MODIFY
WalletWasabi.Fluent/Views/Wallets/MusicControlsView.axaml
WalletWasabi.Fluent/Views/Wallets/MusicControlsView.axaml
<Separator Classes="vertical" />
- <ProgressBar Minimum="0" Maximum="100" Value="89" Foreground="White" />
+ <ProgressBar Minimum="0" Maximum="100" Value="{Binding ProgressValue}" Foreground="White" />
<Separator Classes="vertical" />

show progress when auto start is counting down.