aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2018-03-14 15:45:26 +0100
committerLibravatar Stefan Malzner <stefan@adlk.io>2018-03-14 15:45:26 +0100
commit5a3daab446f7a4da9855b6a7bb0469c8cc0476a6 (patch)
tree822f3f58bce677269a0d0992d4616622b578fb47 /src
parentRemove debug log (diff)
downloadferdium-app-5a3daab446f7a4da9855b6a7bb0469c8cc0476a6.tar.gz
ferdium-app-5a3daab446f7a4da9855b6a7bb0469c8cc0476a6.tar.zst
ferdium-app-5a3daab446f7a4da9855b6a7bb0469c8cc0476a6.zip
Fix issue with systemMute handler triggering too many IPC calls
Diffstat (limited to 'src')
-rw-r--r--src/stores/AppStore.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js
index 162422017..d07576569 100644
--- a/src/stores/AppStore.js
+++ b/src/stores/AppStore.js
@@ -244,7 +244,7 @@ export default class AppStore extends Store {
244 } 244 }
245 245
246 @action _muteApp({ isMuted, overrideSystemMute = true }) { 246 @action _muteApp({ isMuted, overrideSystemMute = true }) {
247 this.isSystemMuteOverriden = overrideSystemMute; 247 this.isSystemMuteOverridden = overrideSystemMute;
248 248
249 this.actions.settings.update({ 249 this.actions.settings.update({
250 settings: { 250 settings: {
@@ -368,7 +368,7 @@ export default class AppStore extends Store {
368 368
369 _systemDND() { 369 _systemDND() {
370 const dnd = getDoNotDisturb(); 370 const dnd = getDoNotDisturb();
371 if (dnd === this.stores.settings.all.isAppMuted || !this.isSystemMuteOverriden) { 371 if (dnd !== this.stores.settings.all.isAppMuted && !this.isSystemMuteOverridden) {
372 this.actions.app.muteApp({ 372 this.actions.app.muteApp({
373 isMuted: dnd, 373 isMuted: dnd,
374 overrideSystemMute: false, 374 overrideSystemMute: false,