feat: in-app-menu hideIcon option

This commit is contained in:
Araxeus
2022-04-09 22:56:01 +03:00
parent 648d540ca9
commit b4b785d773
2 changed files with 21 additions and 1 deletions

View File

@ -0,0 +1,14 @@
const { setOptions } = require("../../config/plugins");
module.exports = (win, options) => [
{
label: "Hide Icon",
type: "checkbox",
checked: options.hideIcon,
click: (item) => {
win.webContents.send("hideIcon", item.checked);
options.hideIcon = item.checked;
setOptions("in-app-menu", options);
},
}
];