From f4db3a4d513ae2240abfcd5d81499689275bded7 Mon Sep 17 00:00:00 2001 From: Stefan Malzner Date: Fri, 10 Nov 2017 22:58:52 +0100 Subject: fix issue with unnecessary settings request invalidation --- src/stores/SettingsStore.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/stores/SettingsStore.js b/src/stores/SettingsStore.js index 331df5c15..7cd7c9114 100644 --- a/src/stores/SettingsStore.js +++ b/src/stores/SettingsStore.js @@ -35,7 +35,10 @@ export default class SettingsStore extends Store { @action async _update({ settings }) { await this.updateSettingsRequest.execute(settings)._promise; - await this.allSettingsRequest.invalidate({ immediately: true }); + this.allSettingsRequest.patch((result) => { + if (!result) return; + Object.assign(result, settings); + }); this._shareSettingsWithMainProcess(); -- cgit v1.2.3-54-g00ecf