diff options
author | Stefan Malzner <stefan@adlk.io> | 2017-11-23 11:30:19 +0100 |
---|---|---|
committer | Stefan Malzner <stefan@adlk.io> | 2017-11-23 11:30:19 +0100 |
commit | 5573ab7e17400229dd5d79fa50808b38293872fc (patch) | |
tree | d1f933f081032a2bff4965033087f2ed2bfcecf9 /src/stores/AppStore.js | |
parent | test tweetdeck glitches (diff) | |
download | ferdium-app-5573ab7e17400229dd5d79fa50808b38293872fc.tar.gz ferdium-app-5573ab7e17400229dd5d79fa50808b38293872fc.tar.zst ferdium-app-5573ab7e17400229dd5d79fa50808b38293872fc.zip |
Add SettingsModel and fix issue with improper mobx data handling
Diffstat (limited to 'src/stores/AppStore.js')
-rw-r--r-- | src/stores/AppStore.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js index 3eb2c38d2..0b7c60bce 100644 --- a/src/stores/AppStore.js +++ b/src/stores/AppStore.js | |||
@@ -220,13 +220,13 @@ export default class AppStore extends Store { | |||
220 | @action _muteApp({ isMuted }) { | 220 | @action _muteApp({ isMuted }) { |
221 | this.actions.settings.update({ | 221 | this.actions.settings.update({ |
222 | settings: { | 222 | settings: { |
223 | isMuted, | 223 | isAppMuted: isMuted, |
224 | }, | 224 | }, |
225 | }); | 225 | }); |
226 | } | 226 | } |
227 | 227 | ||
228 | @action _toggleMuteApp() { | 228 | @action _toggleMuteApp() { |
229 | this._muteApp({ isMuted: !this.stores.settings.all.isMuted }); | 229 | this._muteApp({ isMuted: !this.stores.settings.all.isAppMuted }); |
230 | } | 230 | } |
231 | 231 | ||
232 | // Reactions | 232 | // Reactions |