diff --git a/src/menu/view.js b/src/menu/view.js index f96cf4b..6820014 100644 --- a/src/menu/view.js +++ b/src/menu/view.js @@ -2,6 +2,7 @@ const {activate} = require('./../win'); const {is} = require('./../util'); const {setAcc} = require('./../keymap'); +const dialog = require('./../dialog'); const settings = require('./../settings'); module.exports = { @@ -99,6 +100,15 @@ module.exports = { settings.set('alwaysOnTop', item.checked); focusedWindow.setAlwaysOnTop(item.checked); } + }, { + label: 'Hide Tray Icon', + type: 'checkbox', + visible: !is.darwin, + checked: settings.get('hideTray'), + click(item) { + settings.set('hideTray', item.checked); + dialog.confirmRestart(); + } }, { type: 'separator' }, {