mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
ELECTRON-479: fix launch on startup issue on first time launch (#375)
- fix launch on startup first time launch issue
This commit is contained in:
parent
8583da7e1b
commit
ed04aacd73
@ -301,9 +301,12 @@ function setupFirstTimeLaunch() {
|
||||
* @returns {Promise}
|
||||
*/
|
||||
function setStartup(lStartup) {
|
||||
log.send(logLevels.INFO, `launch on startup parameter value is ${lStartup}`);
|
||||
return new Promise((resolve) => {
|
||||
let launchOnStartup = (lStartup === 'true');
|
||||
let launchOnStartup = (String(lStartup) === 'true');
|
||||
log.send(logLevels.INFO, `launchOnStartup value is ${launchOnStartup}`);
|
||||
if (launchOnStartup) {
|
||||
log.send(logLevels.INFO, `enabling launch on startup`);
|
||||
symphonyAutoLauncher.enable();
|
||||
return resolve();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user