Skip to content

Commit

Permalink
Fix issue with systemMute handler triggering too many IPC calls
Browse files Browse the repository at this point in the history
  • Loading branch information
adlk committed Mar 14, 2018
1 parent 668e7d0 commit 5a3daab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stores/AppStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ export default class AppStore extends Store {
}
@action _muteApp({ isMuted, overrideSystemMute = true }) {
this.isSystemMuteOverriden = overrideSystemMute;
this.isSystemMuteOverridden = overrideSystemMute;
this.actions.settings.update({
settings: {
Expand Down Expand Up @@ -368,7 +368,7 @@ export default class AppStore extends Store {

_systemDND() {
const dnd = getDoNotDisturb();
if (dnd === this.stores.settings.all.isAppMuted || !this.isSystemMuteOverriden) {
if (dnd !== this.stores.settings.all.isAppMuted && !this.isSystemMuteOverridden) {
this.actions.app.muteApp({
isMuted: dnd,
overrideSystemMute: false,
Expand Down

0 comments on commit 5a3daab

Please sign in to comment.