diff --git a/app.js b/app.js index 57333fec..920844bd 100644 --- a/app.js +++ b/app.js @@ -130,6 +130,14 @@ ipc.on('reloadCurrentService', function(e) { var tab = Ext.cq1('app-main').getActiveTab(); if ( tab.id !== 'ramboxTab' ) tab.reloadService(); }); +// Toggle Status Bar +ipc.on('toggleStatusBar', function() { + var tab = Ext.cq1('app-main').getActiveTab(); + + if ( tab.id !== 'ramboxTab' ) { + tab.down('statusbar').closed ? tab.setStatusBar(tab.record.get('statusbar')) : tab.closeStatusBar(); + } +}); // Focus the current service when Alt + Tab or click in webviews textfields window.addEventListener('focus', function() { if(Ext.cq1("app-main")) Ext.cq1("app-main").getActiveTab().down('component').el.dom.focus(); diff --git a/electron/menu.js b/electron/menu.js index ae47f71a..7b485e91 100644 --- a/electron/menu.js +++ b/electron/menu.js @@ -162,6 +162,15 @@ module.exports = function(config) { { type: 'separator' }, + { + label: '&Toggle Status Bar', + click() { + sendAction('toggleStatusBar'); + } + }, + { + type: 'separator' + }, { role: 'zoomin' },