add PrivateMode to CoinList
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/CoinListView.xaml
WalletWasabi.Gui/Controls/WalletExplorer/CoinListView.xaml
<Border ToolTip.Tip="{Binding ToolTip}" Padding="1" Grid.Column="2" Background="{Binding Status, Converter={StaticResource CoinStatusColorConverter}}" BorderBrush="{Binding Status, Converter={StaticResource CoinStatusBorderBrushConverter}}" HorizontalAlignment="Left" BorderThickness="1" CornerRadius="0,6,6,0">
<TextBlock Text="{Binding Status, Converter={StaticResource CoinStatusStringConverter}, Mode=OneWay}" Foreground="{Binding Status, Converter={StaticResource CoinStatusForegroundConverter}}" />
</Border>
- <TextBlock Grid.Column="3" Text="{Binding AmountBtc}" />
+ <TextBlock Grid.Column="3" Text="{Binding AmountBtcPrivate}" />
<Panel Grid.Column="4" VerticalAlignment="Center" HorizontalAlignment="Center" Background="Transparent"
DataContext="{Binding AnonymitySet, Converter={StaticResource PrivacyLevelValueConverter}}"
ToolTip.Tip="{Binding ToolTip}">
<DrawingPresenter Drawing="{Binding Icon}" Margin="0 0 25 0" />
</Panel>
- <controls:ExtendedTextBox Classes="selectableTextBlock" Background="Transparent" Grid.Column="5" Text="{Binding Clusters}" />
+ <controls:ExtendedTextBox Classes="selectableTextBlock" Background="Transparent" Grid.Column="5" Text="{Binding ClustersPrivate}" />
<TextBlock Text="" Grid.Column="6" />
</Grid>
</Grid>

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/CoinViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/CoinViewModel.cs
@@ -63,6 +63,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
model.WhenAnyValue(x => x.Clusters).ObserveOn(RxApp.MainThreadScheduler).Subscribe(_ =>
{
this.RaisePropertyChanged(nameof(Clusters));
+ this.RaisePropertyChanged(nameof(ClustersPrivate));
}).DisposeWith(Disposables);
this.WhenAnyValue(x => x.Status).Subscribe(_ =>
@@ -76,6 +77,12 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
this.RaisePropertyChanged(nameof(Confirmations));
}).DisposeWith(Disposables);
+ Global.UiConfig.WhenAnyValue(x => x.PrivateMode).Subscribe(_ =>
+ {
+ this.RaisePropertyChanged(nameof(AmountBtcPrivate));
+ this.RaisePropertyChanged(nameof(ClustersPrivate));
+ }).DisposeWith(Disposables);
+
Global.ChaumianClient.StateUpdated += ChaumianClient_StateUpdated;
}
@@ -131,6 +138,8 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
public string AmountBtc => Model.Amount.ToString(false, true);
+ public string AmountBtcPrivate => Global.UiConfig.PrivateMode == true ? "#######" : AmountBtc;
+
public string Label => Model.Label;
public int Height => Model.Height;
@@ -143,7 +152,9 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
public string InCoinJoin => Model.CoinJoinInProgress ? "Yes" : "No";
- public string Clusters => Model.Clusters;
+ public string Clusters => string.IsNullOrEmpty(Model.Clusters) ? "" : Model.Clusters; //If the value is null the bind do not update the view. It shows the previous state for example: ##### even if PrivMode false.
+
+ public string ClustersPrivate => Global.UiConfig.PrivateMode == true ? "################################################################################" : Clusters;
public string PubKey => Model.HdPubKey.PubKey.ToString();

add PrivateMode to CoinList