Skip to content

Commit

Permalink
Added Hide Tray Icon option for Linux & Win32
Browse files Browse the repository at this point in the history
  • Loading branch information
klaudiosinani committed Dec 27, 2018
1 parent 0614b13 commit 75c9299
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/menu/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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'
}, {
Expand Down

0 comments on commit 75c9299

Please sign in to comment.