From 5db8c2d3d97b24b6414c38346d98f79120b606e6 Mon Sep 17 00:00:00 2001 From: Ramiro Saenz Date: Wed, 6 Sep 2017 09:49:04 -0300 Subject: [PATCH] Fixed Don't Disturb bug when a services is disabled --- app/view/main/MainController.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/view/main/MainController.js b/app/view/main/MainController.js index ab93b03d..7fc34cda 100644 --- a/app/view/main/MainController.js +++ b/app/view/main/MainController.js @@ -236,6 +236,8 @@ Ext.define('Rambox.view.main.MainController', { // Get Tab var tab = Ext.getCmp('tab_'+serviceId); + if ( !tab ) return; // Skip disabled services + // Mute sounds tab.setAudioMuted(btn.pressed ? true : tab.record.get('muted'), true);