diff --git a/main.js b/main.js index 5dfdec0..be84188 100644 --- a/main.js +++ b/main.js @@ -370,6 +370,7 @@ function createWindow(status) { mainWindow.zcashParamsExist = _zcashParamsExist; mainWindow.iguanaIcon = iguanaIcon; mainWindow.testLocation = shepherd.testLocation; + mainWindow.kmdMainPassiveMode = shepherd.kmdMainPassiveMode; if (appConfig.dev) { mainWindow.loadURL('http://127.0.0.1:3000'); diff --git a/routes/shepherd.js b/routes/shepherd.js index 5b1b717..f7aba19 100644 --- a/routes/shepherd.js +++ b/routes/shepherd.js @@ -95,10 +95,15 @@ if (os.platform() === 'win32') { shepherd.appConfigSchema = _appConfig.schema; shepherd.defaultAppConfig = Object.assign({}, shepherd.appConfig); +shepherd.kmdMainPassiveMode = false; shepherd.coindInstanceRegistry = coindInstanceRegistry; shepherd.startKMDNative = function(selection, isManual) { + if (isManual) { + shepherd.kmdMainPassiveMode = true; + } + if (selection === 'KMD') { const herdData = { 'ac_name': 'komodod',