Undo new parameter in CoinViewModel ctor
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/CoinListViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/CoinListViewModel.cs
@@ -436,7 +436,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
RootList.RemoveMany(coinToRemove.Select(kp => kp.Value));
- var newCoinViewModels = coinToAdd.Select(c => new CoinViewModel(this, c, CanDequeueCoins)).ToArray();
+ var newCoinViewModels = coinToAdd.Select(c => new CoinViewModel(this, c)).ToArray();
foreach (var cvm in newCoinViewModels)
{
SubscribeToCoinEvents(cvm);

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/CoinViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/CoinViewModel.cs
@@ -37,13 +37,13 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
public bool CanBeDequeued { get; }
public ReactiveCommand<Unit, Unit> DequeueCoin { get; }
- public CoinViewModel(CoinListViewModel owner, SmartCoin model, bool canBeDequeued)
+ public CoinViewModel(CoinListViewModel owner, SmartCoin model)
{
Global = Locator.Current.GetService<Global>();
Model = model;
Owner = owner;
- CanBeDequeued = canBeDequeued;
+ CanBeDequeued = owner.CanDequeueCoins;
RefreshSmartCoinStatus();

Undo new parameter in CoinViewModel ctor