diff options
author | 2017-11-10 22:58:52 +0100 | |
---|---|---|
committer | 2017-11-10 22:58:52 +0100 | |
commit | f4db3a4d513ae2240abfcd5d81499689275bded7 (patch) | |
tree | d79b2ce265b0e73110d13dce364c8b17d9ffaca8 /src/stores/SettingsStore.js | |
parent | move unread message badge a few pixel (diff) | |
download | ferdium-app-f4db3a4d513ae2240abfcd5d81499689275bded7.tar.gz ferdium-app-f4db3a4d513ae2240abfcd5d81499689275bded7.tar.zst ferdium-app-f4db3a4d513ae2240abfcd5d81499689275bded7.zip |
fix issue with unnecessary settings request invalidation
Diffstat (limited to 'src/stores/SettingsStore.js')
-rw-r--r-- | src/stores/SettingsStore.js | 5 |
1 files changed, 4 insertions, 1 deletions
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 { | |||
35 | 35 | ||
36 | @action async _update({ settings }) { | 36 | @action async _update({ settings }) { |
37 | await this.updateSettingsRequest.execute(settings)._promise; | 37 | await this.updateSettingsRequest.execute(settings)._promise; |
38 | await this.allSettingsRequest.invalidate({ immediately: true }); | 38 | this.allSettingsRequest.patch((result) => { |
39 | if (!result) return; | ||
40 | Object.assign(result, settings); | ||
41 | }); | ||
39 | 42 | ||
40 | this._shareSettingsWithMainProcess(); | 43 | this._shareSettingsWithMainProcess(); |
41 | 44 | ||