Finish Open Menu
MODIFY
WalletWasabi.Gui/Icons/Icons.xaml
WalletWasabi.Gui/Icons/Icons.xaml
</DrawingGroup.Children>
</DrawingGroup>
- <DrawingGroup x:Key="DataFolder">
+ <DrawingGroup x:Key="FolderOpen">
<DrawingGroup.Children>
<GeometryDrawing Brush="#00FFFFFF" Geometry="F1M0,0L16,0 16,16 0,16z" />
<GeometryDrawing Brush="#FFF6F6F6" Geometry="F1M0,2.9688L0,11.9688C0,12.5858 0.227,13.0718 0.57,13.4038 1.14,13.9478 2,13.9688 2,13.9688L13.677,13.9688 16,8.1648 16,6.9688 15,6.9688 15,4.9688C15,3.6698,13.97,2.9688,13,2.9688L10.116,2.9688 9.116,0.9688 2,0.9688C1.005,0.9688,0,1.6658,0,2.9688" />
</DrawingGroup.Children>
</DrawingGroup>
+ <DrawingGroup x:Key="Log">
+ <DrawingGroup.Children>
+ <GeometryDrawing Brush="#FFF6F6F6" Geometry="F1M13,12L4,12 4,3 13,3z" />
+ <GeometryDrawing Brush="#FF414141" Geometry="F1M11,5L7,5 7,10 11,10z M12,4L11.999,11 5,11 5,10 6,10 6,9 5,9 5,8 6,8 6,7 5,7 5,6 6,6 6,5 5,5 5,4z M10,7L8,7 8,6 10,6z" />
+ <GeometryDrawing Brush="#FFF0EFF1" Geometry="F1M10,7L8,7 8,6 10,6z M7,10L11,10 11,5 7,5z" />
+ </DrawingGroup.Children>
+ </DrawingGroup>
+
<DrawingGroup x:Key="Settings">
<DrawingGroup.Children>
<GeometryDrawing Brush="#FFF6F6F6" Geometry="F1M0,16L16,16 16,0 0,0z" />

MODIFY
WalletWasabi.Gui/Shell/Commands/DiskCommands.cs
WalletWasabi.Gui/Shell/Commands/DiskCommands.cs
@@ -17,8 +17,28 @@ namespace WalletWasabi.Gui.Shell.Commands
{
OpenDataFolderCommand = new CommandDefinition(
"Data Folder",
- commandIconService.GetCompletionKindImage("DataFolder"),
+ commandIconService.GetCompletionKindImage("FolderOpen"),
ReactiveCommand.Create(OnOpenDataFolder));
+
+ OpenWalletsFolderCommand = new CommandDefinition(
+ "Wallets Folder",
+ commandIconService.GetCompletionKindImage("FolderOpen"),
+ ReactiveCommand.Create(OnOpenWalletsFolder));
+
+ OpenLogFileCommand = new CommandDefinition(
+ "Log File",
+ commandIconService.GetCompletionKindImage("Log"),
+ ReactiveCommand.Create(OnOpenLogFile));
+
+ OpenTorLogFileCommand = new CommandDefinition(
+ "Tor Log File",
+ commandIconService.GetCompletionKindImage("Log"),
+ ReactiveCommand.Create(OnOpenTorLogFile));
+
+ OpenConfigFileCommand = new CommandDefinition(
+ "Config File",
+ commandIconService.GetCompletionKindImage("Settings"),
+ ReactiveCommand.Create(OnOpenConfigFile));
}
private void OnOpenDataFolder()
@@ -26,7 +46,39 @@ namespace WalletWasabi.Gui.Shell.Commands
IoHelpers.OpenFolderInFileExplorer(Global.DataDir);
}
+ private void OnOpenWalletsFolder()
+ {
+ IoHelpers.OpenFolderInFileExplorer(Global.WalletsDir);
+ }
+
+ private void OnOpenLogFile()
+ {
+ IoHelpers.OpenFileInTextEditor(Logging.Logger.FilePath);
+ }
+
+ private void OnOpenTorLogFile()
+ {
+ IoHelpers.OpenFileInTextEditor(Global.TorLogsFile);
+ }
+
+ private void OnOpenConfigFile()
+ {
+ IoHelpers.OpenFileInTextEditor(Global.Config.FilePath);
+ }
+
[ExportCommandDefinition("File.Open.DataFolder")]
public CommandDefinition OpenDataFolderCommand { get; }
+
+ [ExportCommandDefinition("File.Open.WalletsFolder")]
+ public CommandDefinition OpenWalletsFolderCommand { get; }
+
+ [ExportCommandDefinition("File.Open.LogFile")]
+ public CommandDefinition OpenLogFileCommand { get; }
+
+ [ExportCommandDefinition("File.Open.TorLogFile")]
+ public CommandDefinition OpenTorLogFileCommand { get; }
+
+ [ExportCommandDefinition("File.Open.ConfigFile")]
+ public CommandDefinition OpenConfigFileCommand { get; }
}
}

MODIFY
WalletWasabi.Gui/Shell/MainMenu/FileMainMenuItems.cs
WalletWasabi.Gui/Shell/MainMenu/FileMainMenuItems.cs
@@ -21,44 +21,64 @@ namespace WalletWasabi.Gui.Shell.MainMenu
[DefaultOrder(0)]
public IMenuItem File => MenuItemFactory.CreateHeaderMenuItem("File", null);
- [ExportMainMenuDefaultGroup("File", "Disk")]
- [DefaultOrder(0)]
- public object DiskGroup => null;
-
- [ExportMainMenuItem("File", "Open")]
- [DefaultOrder(0)]
- public IMenuItem Open => MenuItemFactory.CreateHeaderMenuItem("Open", null);
-
- [ExportMainMenuItem("File", "Open", "Data Folder")]
- [DefaultOrder(1)]
- [DefaultGroup("Disk")]
- public IMenuItem OpenDataFolder => MenuItemFactory.CreateCommandMenuItem("File.Open.DataFolder");
-
[ExportMainMenuDefaultGroup("File", "Wallet")]
- [DefaultOrder(1)]
+ [DefaultOrder(0)]
public object WalletGroup => null;
[ExportMainMenuItem("File", "Generate Wallet")]
- [DefaultOrder(10)]
+ [DefaultOrder(1)]
[DefaultGroup("Wallet")]
public IMenuItem GenerateWallet => MenuItemFactory.CreateCommandMenuItem("File.GenerateWallet");
[ExportMainMenuItem("File", "Recover Wallet")]
- [DefaultOrder(11)]
+ [DefaultOrder(2)]
[DefaultGroup("Wallet")]
public IMenuItem Recover => MenuItemFactory.CreateCommandMenuItem("File.RecoverWallet");
[ExportMainMenuItem("File", "Load Wallet")]
- [DefaultOrder(12)]
+ [DefaultOrder(3)]
[DefaultGroup("Wallet")]
public IMenuItem LoadWallet => MenuItemFactory.CreateCommandMenuItem("File.LoadWallet");
+ [ExportMainMenuDefaultGroup("File", "Disk")]
+ [DefaultOrder(10)]
+ public object DiskGroup => null;
+
+ [ExportMainMenuItem("File", "Open")]
+ [DefaultOrder(11)]
+ public IMenuItem Open => MenuItemFactory.CreateHeaderMenuItem("Open", null);
+
+ [ExportMainMenuItem("File", "Open", "Data Folder")]
+ [DefaultOrder(111)]
+ [DefaultGroup("Disk")]
+ public IMenuItem OpenDataFolder => MenuItemFactory.CreateCommandMenuItem("File.Open.DataFolder");
+
+ [ExportMainMenuItem("File", "Open", "Wallets Folder")]
+ [DefaultOrder(112)]
+ [DefaultGroup("Disk")]
+ public IMenuItem OpenWalletsFolder => MenuItemFactory.CreateCommandMenuItem("File.Open.WalletsFolder");
+
+ [ExportMainMenuItem("File", "Open", "Log File")]
+ [DefaultOrder(113)]
+ [DefaultGroup("Disk")]
+ public IMenuItem OpenLogFile => MenuItemFactory.CreateCommandMenuItem("File.Open.LogFile");
+
+ [ExportMainMenuItem("File", "Open", "Tor Log File")]
+ [DefaultOrder(114)]
+ [DefaultGroup("Disk")]
+ public IMenuItem OpenTorLogFile => MenuItemFactory.CreateCommandMenuItem("File.Open.TorLogFile");
+
+ [ExportMainMenuItem("File", "Open", "Config File")]
+ [DefaultOrder(115)]
+ [DefaultGroup("Disk")]
+ public IMenuItem OpenConfigFile => MenuItemFactory.CreateCommandMenuItem("File.Open.ConfigFile");
+
[ExportMainMenuDefaultGroup("File", "Exit")]
[DefaultOrder(1000)]
public object ExitGroup => null;
[ExportMainMenuItem("File", "Exit")]
- [DefaultOrder(0)]
+ [DefaultOrder(1001)]
[DefaultGroup("Exit")]
public IMenuItem Exit => MenuItemFactory.CreateCommandMenuItem("File.Exit");
}

Finish Open Menu