Skip to content

Commit

Permalink
Add Stay in Front menu item
Browse files Browse the repository at this point in the history
related to #23
  • Loading branch information
jhen0409 committed Nov 12, 2016
1 parent 058b309 commit ae9651c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
7 changes: 7 additions & 0 deletions electron/menu/darwin.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,13 @@ export default (win, iconPath) =>
}, {
label: 'Bring All to Front',
selector: 'arrangeInFront:',
}, {
label: 'Stay in Front',
type: 'checkbox',
checked: false,
click({ checked }) {
win.setAlwaysOnTop(checked, 'floating');
},
}],
}, {
label: 'Help',
Expand Down
11 changes: 11 additions & 0 deletions electron/menu/linux+win.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@ export default (win, iconPath) =>
click() {
win.checkUpdate(win, iconPath, true);
},
}, {
type: 'separator',
}, {
label: 'Stay in Front',
type: 'checkbox',
checked: false,
click({ checked }) {
win.setAlwaysOnTop(checked);
},
}, {
type: 'separator',
}, {
label: 'Close',
accelerator: 'Ctrl+W',
Expand Down

0 comments on commit ae9651c

Please # to comment.