Add back empty PrivacySettings
MODIFY
WalletWasabi.Fluent/ViewModels/MainViewModel.cs
WalletWasabi.Fluent/ViewModels/MainViewModel.cs
@@ -183,6 +183,13 @@ public partial class MainViewModel : ViewModelBase
return _settingsPage;
});
+ PrivacySettingsTabViewModel.RegisterLazy(
+ () =>
+ {
+ _settingsPage.SelectedTab = 1;
+ return _settingsPage;
+ });
+
NetworkSettingsTabViewModel.RegisterLazy(
() =>
{

ADD
WalletWasabi.Fluent/ViewModels/Settings/PrivacySettingsTabViewModel.cs
+using System.Reactive.Linq;
+using ReactiveUI;
+
+namespace WalletWasabi.Fluent.ViewModels.Settings;
+
+[NavigationMetaData(
+ Title = "Privacy",
+ Caption = "Manage privacy settings",
+ Order = 1,
+ Category = "Settings",
+ Keywords = new[] { "Settings", "Privacy", "Minimal", "Medium", "Strong", "Anonymity", "Level" },
+ IconName = "settings_privacy_regular")]
+public partial class PrivacySettingsTabViewModel : SettingsTabViewModelBase
+{
+ [AutoNotify] private int _minAnonScoreTarget;
+ [AutoNotify] private int _maxAnonScoreTarget;
+
+ public PrivacySettingsTabViewModel()
+ {
+ }
+
+ protected override void EditConfigOnSave(Config config)
+ {
+ }
+}

MODIFY
WalletWasabi.Fluent/ViewModels/Settings/SettingsPageViewModel.cs
WalletWasabi.Fluent/ViewModels/Settings/SettingsPageViewModel.cs
@@ -12,7 +12,7 @@ namespace WalletWasabi.Fluent.ViewModels.Settings;
Caption = "Manage appearance, privacy and other settings",
Order = 1,
Category = "General",
- Keywords = new[] { "Settings", "General", "User", "Interface", "Advanced" },
+ Keywords = new[] { "Settings", "General", "User", "Interface", "Privacy", "Advanced" },
IconName = "settings_regular",
Searchable = false,
NavBarPosition = NavBarPosition.Bottom)]
@@ -26,6 +26,7 @@ public partial class SettingsPageViewModel : NavBarItemViewModel
_selectedTab = 0;
GeneralSettingsTab = new GeneralSettingsTabViewModel();
+ PrivacySettingsTab = new PrivacySettingsTabViewModel();
NetworkSettingsTab = new NetworkSettingsTabViewModel();
BitcoinTabSettings = new BitcoinTabSettingsViewModel();
@@ -35,6 +36,7 @@ public partial class SettingsPageViewModel : NavBarItemViewModel
public ICommand RestartCommand { get; }
public GeneralSettingsTabViewModel GeneralSettingsTab { get; }
+ public PrivacySettingsTabViewModel PrivacySettingsTab { get; }
public NetworkSettingsTabViewModel NetworkSettingsTab { get; }
public BitcoinTabSettingsViewModel BitcoinTabSettings { get; }

ADD
WalletWasabi.Fluent/Views/Settings/PrivacySettingsTabView.axaml
+<UserControl xmlns="https://github.com/avaloniaui"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+ xmlns:settings="using:WalletWasabi.Fluent.ViewModels.Settings"
+ mc:Ignorable="d" d:DesignWidth="428" d:DesignHeight="371"
+ x:Class="WalletWasabi.Fluent.Views.Settings.PrivacySettingsTabView"
+ x:DataType="settings:PrivacySettingsTabViewModel"
+ x:CompileBindings="True">
+ <StackPanel Classes="settingsLayout">
+ </StackPanel>
+</UserControl>

ADD
WalletWasabi.Fluent/Views/Settings/PrivacySettingsTabView.axaml.cs
+using Avalonia.Controls;
+using Avalonia.Markup.Xaml;
+
+namespace WalletWasabi.Fluent.Views.Settings;
+
+public class PrivacySettingsTabView : UserControl
+{
+ public PrivacySettingsTabView()
+ {
+ InitializeComponent();
+ }
+
+ private void InitializeComponent()
+ {
+ AvaloniaXamlLoader.Load(this);
+ }
+}

MODIFY
WalletWasabi.Fluent/Views/Settings/SettingsPageView.axaml
WalletWasabi.Fluent/Views/Settings/SettingsPageView.axaml
<v:GeneralSettingsTabView DataContext="{Binding GeneralSettingsTab}" />
</TabItem>
+ <TabItem Header="Privacy">
+ <v:PrivacySettingsTabView DataContext="{Binding PrivacySettingsTab}" />
+ </TabItem>
+
<TabItem Header="Network">
<v:NetworkSettingsTabView DataContext="{Binding NetworkSettingsTab}" />
</TabItem>

Add back empty PrivacySettings