Merge pull request #655 from Araxeus/add-always-on-top-option

add always-on-top option
This commit is contained in:
th-ch
2022-04-07 21:01:15 +02:00
committed by GitHub
2 changed files with 13 additions and 0 deletions

View File

@ -113,6 +113,15 @@ const mainMenuTemplate = (win) => {
}
},
},
{
label: "Always on top",
type: "checkbox",
checked: config.get("options.alwaysOnTop"),
click: (item) => {
config.setMenuOption("options.alwaysOnTop", item.checked);
win.setAlwaysOnTop(item.checked);
},
},
...(is.windows() || is.linux()
? [
{