Browse Source

Fixed Don't Disturb bug when a services is disabled

pull/1123/head
Ramiro Saenz 8 years ago
parent
commit
5db8c2d3d9
  1. 2
      app/view/main/MainController.js

2
app/view/main/MainController.js

@ -236,6 +236,8 @@ Ext.define('Rambox.view.main.MainController', {
// Get Tab // Get Tab
var tab = Ext.getCmp('tab_'+serviceId); var tab = Ext.getCmp('tab_'+serviceId);
if ( !tab ) return; // Skip disabled services
// Mute sounds // Mute sounds
tab.setAudioMuted(btn.pressed ? true : tab.record.get('muted'), true); tab.setAudioMuted(btn.pressed ? true : tab.record.get('muted'), true);

Loading…
Cancel
Save