disable button instead of hide
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/CoinJoinStateViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/CoinJoinStateViewModel.cs
@@ -160,8 +160,6 @@ public partial class CoinJoinStateViewModel : ViewModelBase
BalanceChanged,
Tick,
PlebStopChanged,
- EnterCriticalPhaseMessage,
- ExitCriticalPhaseMessage,
WalletStartedCoinJoin,
WalletStoppedCoinJoin,
AutoCoinJoinOff
@@ -232,16 +230,6 @@ public partial class CoinJoinStateViewModel : ViewModelBase
CurrentStatus = _waitingMessage;
})
- .OnTrigger(Trigger.EnterCriticalPhaseMessage, () =>
- {
- PauseVisible = false;
- StopVisible = false;
- })
- .OnTrigger(Trigger.ExitCriticalPhaseMessage, () =>
- {
- PauseVisible = IsAutoCoinJoinEnabled;
- StopVisible = !IsAutoCoinJoinEnabled;
- })
.OnTrigger(Trigger.Tick, UpdateCountDown);
_stateMachine.Configure(State.PlebStopActive)
@@ -375,12 +363,10 @@ public partial class CoinJoinStateViewModel : ViewModelBase
break;
case EnteringCriticalPhase:
- _stateMachine.Fire(Trigger.EnterCriticalPhaseMessage);
IsInCriticalPhase = true;
break;
case LeavingCriticalPhase:
- _stateMachine.Fire(Trigger.ExitCriticalPhaseMessage);
IsInCriticalPhase = false;
break;
}

MODIFY
WalletWasabi.Fluent/Views/Wallets/MusicControlsView.axaml
WalletWasabi.Fluent/Views/Wallets/MusicControlsView.axaml
<Panel DataContext="{Binding CoinJoinStateViewModel}">
<Panel Background="{DynamicResource TileRegionColor}" Opacity="0.35" />
<StackPanel Margin="10 5" Orientation="Horizontal" Spacing="20">
+ <StackPanel.Styles>
+ <Style Selector="Button:disabled PathIcon">
+ <Setter Property="Foreground" Value="{DynamicResource TextControlForegroundDisabled}"/>
+ </Style>
+ </StackPanel.Styles>
<Image Height="35" Width="35" VerticalAlignment="Center" HorizontalAlignment="Center" Source="{DynamicResource wasabi_logo_dynamic}" />
<StackPanel Spacing="5">
<TransitioningContentControl MinWidth="350" MaxWidth="350" MinHeight="18" Content="{Binding CurrentStatus}">
</Button>
<Button Classes="plain"
+ IsEnabled="{Binding !IsInCriticalPhase}"
IsVisible="{Binding PauseVisible}"
Command="{Binding StopPauseCommand}">
<PathIcon Data="{StaticResource pause_regular}" />
</Button>
<Button Classes="plain"
+ IsEnabled="{Binding !IsInCriticalPhase}"
IsVisible="{Binding StopVisible}"
Command="{Binding StopPauseCommand}">
<PathIcon Data="{StaticResource stop_regular}" />

disable button instead of hide