|
|
@ -191,10 +191,8 @@ function startKMDPassive() { |
|
|
|
|
|
|
|
window.startKMDNative('KMD', true); |
|
|
|
|
|
|
|
setTimeout(function() { |
|
|
|
window.createWindow('open'); |
|
|
|
window.hide(); |
|
|
|
}, 1000); |
|
|
|
} |
|
|
|
|
|
|
|
function closeMainWindow(isKmdOnly, isCustom) { |
|
|
@ -206,7 +204,6 @@ function closeMainWindow(isKmdOnly, isCustom) { |
|
|
|
|
|
|
|
if (!isCustom) { |
|
|
|
window.startKMDNative(isKmdOnly ? 'KMD' : null); |
|
|
|
} |
|
|
|
|
|
|
|
setTimeout(function() { |
|
|
|
window.createWindow('open'); |
|
|
@ -214,6 +211,10 @@ function closeMainWindow(isKmdOnly, isCustom) { |
|
|
|
}, 3000); |
|
|
|
} |
|
|
|
|
|
|
|
window.createWindow('open'); |
|
|
|
window.hide(); |
|
|
|
} |
|
|
|
|
|
|
|
function quitApp() { |
|
|
|
const remote = require('electron').remote; |
|
|
|
const window = remote.getCurrentWindow(); |
|
|
|