From 68d728b2de9b5f4866f8e8a503b65a91bb9293a0 Mon Sep 17 00:00:00 2001 From: pbca26 Date: Sun, 10 Sep 2017 17:50:39 +0300 Subject: [PATCH] kmd passive flag --- main.js | 1 + routes/shepherd.js | 5 +++++ 2 files changed, 6 insertions(+) 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',