fix auto coinjoin indicator
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/CoinJoinStateViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/CoinJoinStateViewModel.cs
@@ -39,7 +39,6 @@ public partial class CoinJoinStateViewModel : ViewModelBase
private readonly MusicStatusMessageViewModel _plebStopMessageBelow = new() { Message = "Receive more funds or press play to bypass" };
[AutoNotify] private bool _isAutoWaiting;
- [AutoNotify] private bool _isAuto;
[AutoNotify] private bool _playVisible = true;
[AutoNotify] private bool _pauseVisible;
[AutoNotify] private bool _stopVisible;
@@ -109,7 +108,9 @@ public partial class CoinJoinStateViewModel : ViewModelBase
await coinJoinManager.StopAsync(wallet, CancellationToken.None);
});
- walletVm.Settings.WhenAnyValue(x => x.AutoCoinJoin)
+ AutoCoinJoinObservable = walletVm.Settings.WhenAnyValue(x => x.AutoCoinJoin);
+
+ AutoCoinJoinObservable
.Skip(1) // The first one is triggered at the creation.
.SubscribeAsync(async (autoCoinJoin) =>
{
@@ -167,6 +168,8 @@ public partial class CoinJoinStateViewModel : ViewModelBase
AutoCoinJoinOff
}
+ public IObservable<bool> AutoCoinJoinObservable { get; }
+
private bool IsCountDownFinished => GetRemainingTime() <= TimeSpan.Zero;
private bool IsCounting => _countdownTimer.IsEnabled;

MODIFY
WalletWasabi.Fluent/Views/Wallets/MusicControlsView.axaml
WalletWasabi.Fluent/Views/Wallets/MusicControlsView.axaml
</Button>
<Ellipse Height="12" Width="12"
- Classes.disabled="{Binding !IsAuto}"
+ Classes.disabled="{Binding !AutoCoinJoinObservable^}"
Classes.waiting="{Binding IsAutoWaiting}">
<Ellipse.Styles>
<Style Selector="Ellipse">

fix auto coinjoin indicator