Browse Source

Prevent execute AutoLaunch on dev

pull/2195/head
Ramiro Saenz 6 years ago
parent
commit
f0159e3c02
  1. 4
      electron/main.js

4
electron/main.js

@ -66,11 +66,13 @@ app.setAppUserModelId('com.grupovrs.ramboxce');
const appMenu = require('./menu')(config); const appMenu = require('./menu')(config);
// Configure AutoLaunch // Configure AutoLaunch
if ( !isDev ) {
const appLauncher = new AutoLaunch({ const appLauncher = new AutoLaunch({
name: 'Rambox' name: 'Rambox'
,isHidden: config.get('start_minimized') ,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 // 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. // be closed automatically when the JavaScript object is garbage collected.

Loading…
Cancel
Save