Browse Source

Rename a few more title updates.

Even though we'll have to do it again soon enough, it should
keep the random 'Rambox' titles from popping up.
pull/3202/head
TheGoddessInari 7 years ago
parent
commit
33c60bcad5
  1. 14
      app/view/main/MainController.js

14
app/view/main/MainController.js

@ -27,9 +27,9 @@ Ext.define('Rambox.view.main.MainController', {
if ( newTab.id === 'ramboxTab' ) {
if ( Rambox.app.getTotalNotifications() > 0 ) {
document.title = 'Rambox ('+ Rambox.app.getTotalNotifications() +')';
document.title = 'Rambox-OS ('+ Rambox.app.getTotalNotifications() +')';
} else {
document.title = 'Rambox';
document.title = 'Rambox-OS';
}
return;
}
@ -43,9 +43,9 @@ Ext.define('Rambox.view.main.MainController', {
// Update the main window so it includes the active tab title.
if ( Rambox.app.getTotalNotifications() > 0 ) {
document.title = 'Rambox ('+ Rambox.app.getTotalNotifications() +') - ' + newTab.record.get('name');
document.title = 'Rambox-OS ('+ Rambox.app.getTotalNotifications() +') - ' + newTab.record.get('name');
} else {
document.title = 'Rambox - ' + newTab.record.get('name');
document.title = 'Rambox-OS - ' + newTab.record.get('name');
}
}
@ -189,7 +189,7 @@ Ext.define('Rambox.view.main.MainController', {
var me = this;
// Clear counter for unread messaging
document.title = 'Rambox';
document.title = 'Rambox-OS';
if ( btn ) {
Ext.Msg.confirm(locale['app.window[12]'], locale['app.window[14]'], function(btnId) {
@ -204,7 +204,7 @@ Ext.define('Rambox.view.main.MainController', {
});
if ( Ext.isFunction(callback) ) callback();
Ext.cq1('app-main').resumeEvent('remove');
document.title = 'Rambox';
document.title = 'Rambox-OS';
}
});
} else {
@ -217,7 +217,7 @@ Ext.define('Rambox.view.main.MainController', {
});
if ( Ext.isFunction(callback) ) callback();
Ext.cq1('app-main').resumeEvent('remove');
document.title = 'Rambox';
document.title = 'Rambox-OS';
}
}

Loading…
Cancel
Save