[skip ci] Pre-select coins
Resolves
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/CoinJoinTabViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/CoinJoinTabViewModel.cs
@@ -48,16 +48,17 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
var queued = globalCoins.CreateDerivedCollection(c => c, c => c.CoinJoinInProgress);
- AvailableCoinsList = new CoinListViewModel(available);
-
- QueuedCoinsList = new CoinListViewModel(queued);
-
- AmountQueued = Global.ChaumianClient.State.SumAllQueuedCoinAmounts();
+ var registrableRound = Global.ChaumianClient.State.GetRegistrableRoundOrDefault();
- Global.ChaumianClient.CoinQueued += ChaumianClient_CoinQueued;
- Global.ChaumianClient.CoinDequeued += ChaumianClient_CoinDequeued;
+ if (!(registrableRound?.State?.Denomination is null) && registrableRound.State.Denomination != Money.Zero)
+ {
+ AvailableCoinsList = new CoinListViewModel(available, registrableRound.State.Denomination, 50);
+ }
+ else
+ {
+ AvailableCoinsList = new CoinListViewModel(available);
+ }
- var registrableRound = Global.ChaumianClient.State.GetRegistrableRoundOrDefault();
if (registrableRound != default)
{
CoordinatorFeePercent = registrableRound.State.CoordinatorFeePercent.ToString();
@@ -69,6 +70,13 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
RequiredBTC = Money.Zero;
}
+ QueuedCoinsList = new CoinListViewModel(queued);
+
+ AmountQueued = Global.ChaumianClient.State.SumAllQueuedCoinAmounts();
+
+ Global.ChaumianClient.CoinQueued += ChaumianClient_CoinQueued;
+ Global.ChaumianClient.CoinDequeued += ChaumianClient_CoinDequeued;
+
var mostAdvancedRound = Global.ChaumianClient.State.GetMostAdvancedRoundOrDefault();
if (mostAdvancedRound != default)
{
@@ -169,11 +177,6 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
Password = string.Empty;
WarningMessageEnqueue = string.Empty;
-
- foreach (var coin in selectedCoins)
- {
- coin.IsSelected = false;
- }
}
private void ChaumianClient_CoinDequeued(object sender, SmartCoin e)

MODIFY
WalletWasabi.Gui/Converters/PrivacyLevelValueConverter.cs
WalletWasabi.Gui/Converters/PrivacyLevelValueConverter.cs
@@ -45,7 +45,7 @@ namespace WalletWasabi.Gui.Converters
{
shield = "Some";
}
- else if (integer < 49)
+ else if (integer < 50)
{
shield = "Fine";
}

[skip ci] Pre-select coins
Resolves https://github.com/zkSNACKs/WalletWasabi/issues/753