electron-113: fixed issues w.r.t. reinstall cases on windows

This commit is contained in:
Vishwas Shashidhar
2017-08-22 21:18:21 +05:30
parent d4807279f6
commit bb939d77ee
3 changed files with 92 additions and 67 deletions

View File

@@ -108,7 +108,7 @@ function setupThenOpenMainWindow() {
if (!isMac && hasInstallFlag) {
getConfigField('launchOnStartup')
.then(setStartup)
.then(updateUserConfigWin(perUserInstall))
.then(() => updateUserConfigWin(perUserInstall))
.then(app.quit)
.catch(app.quit);
return;
@@ -121,7 +121,7 @@ function setupThenOpenMainWindow() {
// access to the config file
let launchOnStartup = process.argv[3];
setStartup(launchOnStartup)
.then(updateUserConfigMac(process.argv[2]))
.then(() => updateUserConfigMac(process.argv[2]))
.then(app.quit)
.catch(app.quit);
return;