2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-12-23 10:38:55 +00:00

Fix incorrect defaults for minimizeToTray option

This commit is contained in:
zweicoder 2016-01-30 12:11:29 +08:00
parent e54e108ce2
commit 97425f9ab5

View File

@ -90,7 +90,7 @@ app.on('ready', () => {
{ {
label: 'Minimize to Tray', label: 'Minimize to Tray',
type: 'checkbox', type: 'checkbox',
checked: appArgs.minimizeToTray || true, checked: appArgs.minimizeToTray || false,
click: function (menuItem) { click: function (menuItem) {
appArgs.minimizeToTray = menuItem.checked; appArgs.minimizeToTray = menuItem.checked;
fs.writeFileSync(APP_ARGS_FILE_PATH, JSON.stringify(appArgs)); fs.writeFileSync(APP_ARGS_FILE_PATH, JSON.stringify(appArgs));