main: Don't install HSD if custom path specified

This commit is contained in:
Nathan Woodburn 2023-06-15 12:21:15 +10:00
parent a8f425434e
commit 2572b17898
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -191,6 +191,11 @@ namespace FireWallet
AddLog("Starting HSD");
toolStripStatusLabelstatus.Text = "Status: HSD Starting";
string hsdPath = dir + "hsd\\bin\\hsd.exe";
if (nodeSettings.ContainsKey("HSD-command"))
{
if (nodeSettings["HSD-command"].Contains("{default-dir}"))
{
if (!Directory.Exists(dir + "hsd"))
{
NotifyForm Notifyinstall = new NotifyForm("Installing hsd\nThis may take a few minutes\nDo not close FireWallet", false);
@ -211,6 +216,10 @@ namespace FireWallet
this.Close();
return false;
}
}
}
hsdProcess = new Process();