From 3f98aea68e17d4c0f8c0f89074176585c8fbb292 Mon Sep 17 00:00:00 2001 From: Shan Khan Date: Fri, 12 Oct 2018 17:06:16 +0500 Subject: [PATCH] #513 --- src/commons.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commons.ts b/src/commons.ts index d679d130..ffec1634 100644 --- a/src/commons.ts +++ b/src/commons.ts @@ -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; } @@ -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)); + } } });