Browse Source

Adapt code from PR #329

pull/367/head
Ramiro Saenz 9 years ago
parent
commit
a197ad4b79
  1. 12
      electron/main.js

12
electron/main.js

@ -24,7 +24,8 @@ const config = new Config({
,hide_menu_bar: false ,hide_menu_bar: false
,skip_taskbar: true ,skip_taskbar: true
,auto_launch: !isDev ,auto_launch: !isDev
,keep_in_taskbar_on_close: getDefaultValueForkeep_in_taskbar_on_close() // On Linux false because it's uncommon for apps on linux to stay in the taskbar on close
,keep_in_taskbar_on_close: process.platform !== 'linux'
,start_minimized: false ,start_minimized: false
,systemtray_indicator: true ,systemtray_indicator: true
,master_password: false ,master_password: false
@ -40,15 +41,6 @@ const config = new Config({
} }
}); });
/**
* Returns the default value for "keep_in_taskbar_on_close".
* On all platforms except linux: true
* On linux: false (because it's uncommon for apps on linux to stay in the taskbar on close)
*/
function getDefaultValueForkeep_in_taskbar_on_close() {
return process.platform !== 'linux';
}
// Configure AutoLaunch // Configure AutoLaunch
const appLauncher = new AutoLaunch({ const appLauncher = new AutoLaunch({
name: 'Rambox' name: 'Rambox'

Loading…
Cancel
Save