Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
shanalikhan committed Oct 12, 2018
1 parent f5577da commit 6d1b44b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/commons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,14 +169,12 @@ export default class Commons {
requiredFileChanged =
path.indexOf(this.en.FILE_SYNC_LOCK_NAME) === -1 &&
path.indexOf(".DS_Store") === -1 &&
path.indexOf(this.en.APP_SUMMARY_NAME) === -1 &&
path.indexOf(this.en.FILE_CUSTOMIZEDSETTINGS_NAME) === -1;
} else {
requiredFileChanged =
path.indexOf(this.en.FILE_SYNC_LOCK_NAME) === -1 &&
path.indexOf("workspaceStorage") === -1 &&
path.indexOf(".DS_Store") === -1 &&
path.indexOf(this.en.APP_SUMMARY_NAME) === -1 &&
path.indexOf(this.en.FILE_CUSTOMIZEDSETTINGS_NAME) === -1;
}

Expand Down Expand Up @@ -481,7 +479,9 @@ export default class Commons {
setting[keyName] = "";
}
if (keyName.toLowerCase() !== "token") {
allKeysUpdated.push(config.update(keyName, setting[keyName], true));
if (config.get(keyName) !== setting[keyName]) {
allKeysUpdated.push(config.update(keyName, setting[keyName], true));
}
}
});

Expand Down

0 comments on commit 6d1b44b

Please sign in to comment.