Adding quit to menus

This commit is contained in:
itdominator 2025-07-14 23:42:51 -05:00
parent 080cc22841
commit ae60905eb4
3 changed files with 9 additions and 0 deletions

View File

@ -22,6 +22,9 @@ const load = (win) => {
}, { }, {
label: 'Terminal', label: 'Terminal',
click: () => {} click: () => {}
}, {
label: "Quit",
click: () => win.webContents.send('menu-actions', "quit")
} }
] ]
}, { }, {

View File

@ -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")
} }
]; ];

View File

@ -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);
} }