mirror of
https://github.com/Nathanwoodburn/FireWallet.git
synced 2024-11-24 08:08:14 +11:00
main: Don't install HSD if custom path specified
This commit is contained in:
parent
a8f425434e
commit
2572b17898
@ -191,9 +191,14 @@ namespace FireWallet
|
|||||||
AddLog("Starting HSD");
|
AddLog("Starting HSD");
|
||||||
toolStripStatusLabelstatus.Text = "Status: HSD Starting";
|
toolStripStatusLabelstatus.Text = "Status: HSD Starting";
|
||||||
|
|
||||||
if (!Directory.Exists(dir + "hsd"))
|
string hsdPath = dir + "hsd\\bin\\hsd.exe";
|
||||||
|
if (nodeSettings.ContainsKey("HSD-command"))
|
||||||
{
|
{
|
||||||
NotifyForm Notifyinstall = new NotifyForm("Installing hsd\nThis may take a few minutes\nDo not close FireWallet", false);
|
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);
|
||||||
Notifyinstall.Show();
|
Notifyinstall.Show();
|
||||||
// Wait for the notification to show
|
// Wait for the notification to show
|
||||||
await Task.Delay(1000);
|
await Task.Delay(1000);
|
||||||
@ -208,10 +213,14 @@ namespace FireWallet
|
|||||||
if (!Directory.Exists(dir + "hsd\\node_modules"))
|
if (!Directory.Exists(dir + "hsd\\node_modules"))
|
||||||
{
|
{
|
||||||
AddLog("HSD install failed");
|
AddLog("HSD install failed");
|
||||||
this.Close();
|
this.Close();
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
hsdProcess = new Process();
|
hsdProcess = new Process();
|
||||||
|
|
||||||
bool hideScreen = true;
|
bool hideScreen = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user