Add WalletSettingsViewModel
MODIFY
WalletWasabi.Fluent/ViewModels/MainViewModel.cs
WalletWasabi.Fluent/ViewModels/MainViewModel.cs
@@ -208,6 +208,16 @@ public partial class MainViewModel : ViewModelBase
return null;
});
+
+ WalletSettingsViewModel.RegisterLazy(() =>
+ {
+ if (UiServices.WalletManager.SelectedWallet is WalletViewModel walletViewModel)
+ {
+ return walletViewModel.Settings;
+ }
+
+ return null;
+ });
}
public void ApplyUiConfigWindowSate()

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/WalletSettingsViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/WalletSettingsViewModel.cs
@@ -7,6 +7,15 @@ using WalletWasabi.Wallets;
namespace WalletWasabi.Fluent.ViewModels.Wallets;
+[NavigationMetaData(
+ Title = "Wallet Settings",
+ Caption = "Displays wallet settings",
+ IconName = "nav_wallet_24_regular",
+ Order = 2,
+ Category = "Wallet",
+ Keywords = new[] { "Wallet", "Settings", },
+ NavBarPosition = NavBarPosition.None,
+ NavigationTarget = NavigationTarget.DialogScreen)]
public partial class WalletSettingsViewModel : RoutableViewModel
{
private readonly Wallet _wallet;
@@ -45,7 +54,5 @@ public partial class WalletSettingsViewModel : RoutableViewModel
public bool IsWatchOnly { get; }
- public override sealed string Title { get; protected set; }
-
public ICommand VerifyRecoveryWordsCommand { get; }
}

Add WalletSettingsViewModel