Browse Source

Change windows title showing current active service

Fixes #843
0.5.10
Ramiro Saenz 8 years ago
parent
commit
15cd21904c
  1. 12
      app/view/main/MainController.js

12
app/view/main/MainController.js

@ -10,10 +10,20 @@ Ext.define('Rambox.view.main.MainController', {
// Set Google Analytics event // Set Google Analytics event
ga_storage._trackPageview('/index.html', 'main'); ga_storage._trackPageview('/index.html', 'main');
if ( newTab.id === 'ramboxTab' || !newTab.record.get('enabled') ) return; if ( newTab.id === 'ramboxTab' ) {
document.title = 'Rambox';
return;
}
if (!newTab.record.get('enabled') ) {
return;
}
var webview = newTab.down('component').el.dom; var webview = newTab.down('component').el.dom;
if ( webview ) webview.focus(); if ( webview ) webview.focus();
// Update the main window so it includes the active tab title.
document.title = 'Rambox - ' + newTab.title;
} }
,updatePositions: function(tabPanel, tab) { ,updatePositions: function(tabPanel, tab) {

Loading…
Cancel
Save