Adding quit to menus
This commit is contained in:
parent
080cc22841
commit
ae60905eb4
@ -22,6 +22,9 @@ const load = (win) => {
|
|||||||
}, {
|
}, {
|
||||||
label: 'Terminal',
|
label: 'Terminal',
|
||||||
click: () => {}
|
click: () => {}
|
||||||
|
}, {
|
||||||
|
label: "Quit",
|
||||||
|
click: () => win.webContents.send('menu-actions', "quit")
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}, {
|
}, {
|
||||||
|
@ -33,6 +33,9 @@ const load = (win) => {
|
|||||||
}, {
|
}, {
|
||||||
label: 'Help',
|
label: 'Help',
|
||||||
click: () => win.webContents.send('menu-actions', "show-about")
|
click: () => win.webContents.send('menu-actions', "show-about")
|
||||||
|
}, {
|
||||||
|
label: 'Quit',
|
||||||
|
click: () => win.webContents.send('menu-actions', "quit")
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -233,6 +233,9 @@ export class EditorsComponent {
|
|||||||
editor.showSettingsMenu();
|
editor.showSettingsMenu();
|
||||||
case "show-about":
|
case "show-about":
|
||||||
break;
|
break;
|
||||||
|
case "quit":
|
||||||
|
window.main.quit();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
editor.execCommand(action);
|
editor.execCommand(action);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user