|
|
|
@ -156,7 +156,7 @@ function createWindow () {
|
|
|
|
|
|
|
|
|
|
tray.create(mainWindow, config); |
|
|
|
|
|
|
|
|
|
if ( fs.existsSync(path.resolve(path.dirname(process.execPath), '..', 'Update.exe')) ) updater.initialize(mainWindow); |
|
|
|
|
if ( fs.existsSync(path.resolve(path.dirname(process.execPath), '..', 'Update.exe')) && process.argv.indexOf('--without-update') === -1 ) updater.initialize(mainWindow); |
|
|
|
|
|
|
|
|
|
// Open links in default browser
|
|
|
|
|
mainWindow.webContents.on('new-window', function(e, url, frameName, disposition, options) { |
|
|
|
@ -184,7 +184,7 @@ function createWindow () {
|
|
|
|
|
// Navigate the window forward when the user hits their mouse forward button
|
|
|
|
|
if ( cmd === 'browser-forward' ) mainWindow.webContents.executeJavaScript('if(Ext.cq1("app-main")) Ext.cq1("app-main").getActiveTab().goForward();'); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Emitted when the window is closed.
|
|
|
|
|
mainWindow.on('close', function(e) { |
|
|
|
|
if ( !isQuitting ) { |
|
|
|
|