add silent mode
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Send/LabelSelectionViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Send/LabelSelectionViewModel.cs
@@ -17,6 +17,7 @@ public partial class LabelSelectionViewModel : ViewModelBase
private readonly KeyManager _keyManager;
private readonly string _password;
private readonly TransactionInfo _info;
+ private readonly bool _isSilent;
private readonly Money _targetAmount;
private readonly FeeRate _feeRate;
private readonly List<Pocket> _hiddenIncludedPockets = new();
@@ -27,11 +28,12 @@ public partial class LabelSelectionViewModel : ViewModelBase
private Pocket _semiPrivatePocket = Pocket.Empty;
private Pocket[] _allPockets = Array.Empty<Pocket>();
- public LabelSelectionViewModel(KeyManager keyManager, string password, TransactionInfo info)
+ public LabelSelectionViewModel(KeyManager keyManager, string password, TransactionInfo info, bool isSilent)
{
_keyManager = keyManager;
_password = password;
_info = info;
+ _isSilent = isSilent;
_targetAmount = _info.MinimumRequiredAmount == Money.Zero ? _info.Amount : _info.MinimumRequiredAmount;
_feeRate = _info.FeeRate;
}

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Send/PrivacyControlViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Send/PrivacyControlViewModel.cs
@@ -26,7 +26,7 @@ public partial class PrivacyControlViewModel : DialogViewModelBase<IEnumerable<S
_isSilent = isSilent;
_usedCoins = usedCoins;
- LabelSelection = new LabelSelectionViewModel(wallet.KeyManager, wallet.Kitchen.SaltSoup(), _transactionInfo);
+ LabelSelection = new LabelSelectionViewModel(wallet.KeyManager, wallet.Kitchen.SaltSoup(), _transactionInfo, isSilent);
SetupCancel(enableCancel: false, enableCancelOnEscape: true, enableCancelOnPressed: false);
EnableBack = true;

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Send/TransactionPreviewViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Send/TransactionPreviewViewModel.cs
@@ -519,7 +519,7 @@ public partial class TransactionPreviewViewModel : RoutableViewModel
var usedCoins = transaction.SpentCoins;
var pockets = _wallet.GetPockets().ToArray();
- var labelSelection = new LabelSelectionViewModel(_wallet.KeyManager, _wallet.Kitchen.SaltSoup(), _info);
+ var labelSelection = new LabelSelectionViewModel(_wallet.KeyManager, _wallet.Kitchen.SaltSoup(), _info, isSilent: true);
labelSelection.Reset(pockets);
_info.IsOtherPocketSelectionPossible = labelSelection.IsOtherSelectionPossible(usedCoins, _info.Recipient);

MODIFY
WalletWasabi.Tests/UnitTests/UserInterfaceTest/PocketSelectionTests.cs
WalletWasabi.Tests/UnitTests/UserInterfaceTest/PocketSelectionTests.cs
@@ -30,7 +30,7 @@ public class PocketSelectionTests
Recipient = recipient
};
- return new LabelSelectionViewModel(km, pw, info);
+ return new LabelSelectionViewModel(km, pw, info, isSilent: false);
}
[Fact]

add silent mode