Restore setting tab
MODIFY
WalletWasabi.Gui/Config.cs
WalletWasabi.Gui/Config.cs
@@ -23,7 +23,7 @@ namespace WalletWasabi.Gui
[JsonProperty(PropertyName = "Network")]
[JsonConverter(typeof(NetworkJsonConverter))]
- public Network Network { get; private set; }
+ public Network Network { get; internal set; }
[JsonProperty(PropertyName = "MainNetBackendUriV3")]
public string MainNetBackendUriV3 { get; private set; }
@@ -265,5 +265,22 @@ namespace WalletWasabi.Gui
{
if (FilePath == null) throw new NotSupportedException($"{nameof(FilePath)} is not set. Use {nameof(SetFilePath)} to set it.");
}
+
+ public Config Clone()
+ {
+ var cfg = new Config();
+ cfg.FilePath = FilePath;
+ cfg.Network = Network;
+
+ cfg.MainNetBackendUriV3 = MainNetBackendUriV3;
+ cfg.TestNetBackendUriV3 = TestNetBackendUriV3;
+ cfg.RegTestBackendUriV3 = RegTestBackendUriV3;
+ cfg.MainNetBlindingRsaPubKey = MainNetBlindingRsaPubKey;
+ cfg.TestNetBlindingRsaPubKey = TestNetBlindingRsaPubKey;
+ cfg.RegTestBlindingRsaPubKey = RegTestBlindingRsaPubKey;
+ cfg.TorSocks5Host = TorSocks5Host;
+ cfg.TorSocks5Port = TorSocks5Port;
+ return cfg;
+ }
}
}

MODIFY
WalletWasabi.Gui/Shell/Commands/ToolCommands.cs
WalletWasabi.Gui/Shell/Commands/ToolCommands.cs
@@ -7,6 +7,7 @@ using ReactiveUI;
using System.IO;
using System.Linq;
using WalletWasabi.Gui.Tabs.WalletManager;
+using WalletWasabi.Gui.Tabs;
namespace WalletWasabi.Gui.Shell.Commands
{
@@ -21,9 +22,12 @@ namespace WalletWasabi.Gui.Shell.Commands
ReactiveCommand.Create(OnWalletManager));
SettingsCommand = new CommandDefinition(
- "I Do Nothing",
+ "Settings",
null,
- ReactiveCommand.Create(() => { }));
+ ReactiveCommand.Create(()=>
+ {
+ IoC.Get<IShell>().AddOrSelectDocument(() => new SettingsViewModel());
+ }));
}
private void OnWalletManager()

Restore setting tab