|
|
|
@ -56,6 +56,12 @@ const appLauncher = new AutoLaunch({
|
|
|
|
|
}); |
|
|
|
|
config.get('auto_launch') && !isDev ? appLauncher.enable() : appLauncher.disable(); |
|
|
|
|
|
|
|
|
|
require('electron-context-menu')({ |
|
|
|
|
prepend: params => [{ |
|
|
|
|
label: 'Rambox' |
|
|
|
|
}] |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
// this should be placed at top of main.js to handle setup events quickly
|
|
|
|
|
if (handleSquirrelEvent()) { |
|
|
|
|
// squirrel event handled and app will exit in 1000ms, so don't do anything else
|
|
|
|
|