|
|
|
@ -19,10 +19,14 @@ const ipc = require('electron').ipcRenderer;
|
|
|
|
|
require('electron-context-menu')(); |
|
|
|
|
|
|
|
|
|
ipc.on('showAbout', function(event, message) { |
|
|
|
|
!Ext.cq1('about') ? Ext.create('Rambox.view.main.About') : ''; |
|
|
|
|
if(!Ext.cq1('about')) { |
|
|
|
|
Ext.create('Rambox.view.main.About'); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
ipc.on('showPreferences', function(event, message) { |
|
|
|
|
!Ext.cq1('preferences') ? Ext.create('Rambox.view.preferences.Preferences').show() : ''; |
|
|
|
|
if (!Ext.cq1('preferences')) { |
|
|
|
|
Ext.create('Rambox.view.preferences.Preferences').show(); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
ipc.on('autoUpdater:check-update', function() { |
|
|
|
|
Rambox.app.checkUpdate(); |
|
|
|
@ -135,7 +139,11 @@ 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(); |
|
|
|
|
if (tab.down('statusbar').closed) { |
|
|
|
|
tab.setStatusBar(tab.record.get('statusbar')); |
|
|
|
|
} else { |
|
|
|
|
tab.closeStatusBar(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
// Focus the current service when Alt + Tab or click in webviews textfields
|
|
|
|
|