Remove changed
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/CoinJoinStateViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/CoinJoinStateViewModel.cs
@@ -94,13 +94,11 @@ public partial class CoinJoinStateViewModel : RoutableViewModel
PlayCommand = ReactiveCommand.Create(async () =>
{
- bool changed = false;
if (!_wallet.KeyManager.IsCoinjoinProfileSelected)
{
DialogResult<bool> isProfileSelected = await NavigateDialogAsync(new CoinJoinProfilesViewModel(_wallet.KeyManager, false), NavigationTarget.DialogScreen);
- changed = isProfileSelected.Result;
}
- if (changed || _wallet.KeyManager.IsCoinjoinProfileSelected)
+ else
{
_stateMachine.Fire(Trigger.Play);
}

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/WalletSettingsViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/WalletSettingsViewModel.cs
@@ -50,13 +50,12 @@ public partial class WalletSettingsViewModel : RoutableViewModel
SetAutoCoinJoin = ReactiveCommand.Create<bool>(async (x) =>
{
- bool changed = false;
if (!_wallet.KeyManager.IsCoinjoinProfileSelected)
{
DialogResult<bool> isProfileSelected = await NavigateDialogAsync(new CoinJoinProfilesViewModel(_wallet.KeyManager, false), NavigationTarget.DialogScreen);
- changed = isProfileSelected.Result;
}
- if (changed)
+
+ if (_wallet.KeyManager.IsCoinjoinProfileSelected)
{
_wallet.KeyManager.AutoCoinJoin = x;
_wallet.KeyManager.ToFile();

Remove changed