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