|
|
|
@ -66,11 +66,13 @@ app.setAppUserModelId('com.grupovrs.ramboxce');
|
|
|
|
|
const appMenu = require('./menu')(config); |
|
|
|
|
|
|
|
|
|
// Configure AutoLaunch
|
|
|
|
|
const appLauncher = new AutoLaunch({ |
|
|
|
|
if ( !isDev ) { |
|
|
|
|
const appLauncher = new AutoLaunch({ |
|
|
|
|
name: 'Rambox' |
|
|
|
|
,isHidden: config.get('start_minimized') |
|
|
|
|
}); |
|
|
|
|
config.get('auto_launch') && !isDev ? appLauncher.enable() : appLauncher.disable(); |
|
|
|
|
}); |
|
|
|
|
config.get('auto_launch') ? appLauncher.enable() : appLauncher.disable(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Keep a global reference of the window object, if you don't, the window will
|
|
|
|
|
// be closed automatically when the JavaScript object is garbage collected.
|
|
|
|
|