const { dialog, Menu } = require('electron')
const { shell, app } = require('electron')
function mainMenu() {
const template = [
{
label: global.p3xre.strings.title,
submenu: [
{
label: global.p3xre.strings.menu.main.quit,
click: () => {
app.quit()
}
}
],
},
{
label: global.p3xre.strings.menu.edit.title,
submenu: [
{type: 'separator'},
{
label: global.p3xre.strings.menu.edit.undo,
role: 'undo'
},
{
label: global.p3xre.strings.menu.edit.redo,
role: 'redo'
},
{type: 'separator'},
{
label: global.p3xre.strings.menu.edit.cut,
role: 'cut'
},
{
label: global.p3xre.strings.menu.edit.copy,
role: 'copy'
},
{
label: global.p3xre.strings.menu.edit.paste,
role: 'paste'
},
{
label: global.p3xre.strings.menu.edit.pasteandmatchstyle,
role: 'pasteandmatchstyle'
},
{
label: global.p3xre.strings.menu.edit.delete,
role: 'delete'
},
{
label: global.p3xre.strings.menu.edit.selectall,
role: 'selectall'
}
]
},