This commit is contained in:
Araxeus
2022-04-10 19:19:20 +03:00
parent c25a6f9d2a
commit 768ec7bda7
5 changed files with 106 additions and 28 deletions

View File

@ -0,0 +1,20 @@
const { setOptions } = require("./back.js");
module.exports = (_win, options) => [
{
label: "Save window position",
type: "checkbox",
checked: options.savePosition,
click: (item) => {
setOptions({ savePosition: item.checked });
},
},
{
label: "Save window size",
type: "checkbox",
checked: options.saveSize,
click: (item) => {
setOptions({ saveSize: item.checked });
},
}
];