implement open wallets folder.
MODIFY
WalletWasabi.Fluent/ViewModels/HomePageViewModel.cs
WalletWasabi.Fluent/ViewModels/HomePageViewModel.cs
@@ -3,6 +3,8 @@ using System.Collections.ObjectModel;
using System.Reactive.Linq;
using DynamicData;
using DynamicData.Binding;
+using System.Reactive;
+using System.IO;
namespace WalletWasabi.Fluent.ViewModels
{
@@ -24,10 +26,14 @@ namespace WalletWasabi.Fluent.ViewModels
.ObserveOn(RxApp.MainThreadScheduler)
.Bind(out _items)
.AsObservableList();
+
+ OpenWalletsFolderCommand = ReactiveCommand.Create(() => IoHelpers.OpenFolderInFileExplorer(walletManager.Model.WalletDirectories.WalletsDir));
}
public override string IconName => "home_regular";
public ReadOnlyObservableCollection<NavBarItemViewModel> Items => _items;
+
+ public ReactiveCommand<Unit, Unit> OpenWalletsFolderCommand { get; }
}
}

MODIFY
WalletWasabi.Fluent/ViewModels/WalletManagerViewModel.cs
WalletWasabi.Fluent/ViewModels/WalletManagerViewModel.cs
@@ -23,6 +23,7 @@ namespace WalletWasabi.Fluent.ViewModels
public WalletManagerViewModel(IScreen screen, WalletManager walletManager, UiConfig uiConfig)
{
+ Model = walletManager;
_walletDictionary = new Dictionary<Wallet, WalletViewModelBase>();
_items = new ObservableCollection<WalletViewModelBase>();
_screen = screen;
@@ -66,6 +67,8 @@ namespace WalletWasabi.Fluent.ViewModels
Dispatcher.UIThread.Post(() => LoadWallets(walletManager));
}
+ public WalletManager Model { get; }
+
public WalletViewModelBase SelectedItem
{
get => _selectedItem;

MODIFY
WalletWasabi.Fluent/Views/HomePageView.axaml
WalletWasabi.Fluent/Views/HomePageView.axaml
<c:ContentArea Title="Home">
<c:ContentArea.Caption>
<DockPanel>
- <Button Classes="invisible" DockPanel.Dock="Right" Command="{Binding OpenWalletsFolderCommand}">
+ <Button Padding="0" Classes="invisible" DockPanel.Dock="Right" Command="{Binding OpenWalletsFolderCommand}">
<StackPanel Orientation="Horizontal" Spacing="20">
<PathIcon Data="{StaticResource open_regular}" />
<TextBlock Text="Open Wallets folder" />

implement open wallets folder.