Browse Source

Minor bugs fixed

pull/367/head
Ramiro Saenz 9 years ago
parent
commit
22ec38aeea
  1. 4
      app/view/main/MainController.js

4
app/view/main/MainController.js

@ -459,7 +459,7 @@ Ext.define('Rambox.view.main.MainController', {
var rec = Ext.getStore('Services').getById(serviceId);
// Clear all trash data
if ( rec.get('enabled') ) {
if ( rec.get('enabled') && tab.down('component').el ) {
tab.down('component').el.dom.getWebContents().session.clearCache(Ext.emptyFn);
tab.down('component').el.dom.getWebContents().session.clearStorageData({}, Ext.emptyFn);
}
@ -495,6 +495,7 @@ Ext.define('Rambox.view.main.MainController', {
Ext.getStore('Services').load();
if ( Ext.isFunction(callback) ) callback();
Ext.cq1('app-main').resumeEvent('remove');
document.title = 'Rambox';
}
});
} else {
@ -505,6 +506,7 @@ Ext.define('Rambox.view.main.MainController', {
Ext.getStore('Services').load();
if ( Ext.isFunction(callback) ) callback();
Ext.cq1('app-main').resumeEvent('remove');
document.title = 'Rambox';
}
}

Loading…
Cancel
Save