diff --git a/newton/menu.js b/newton/menu.js index 26e5878..f3a82b4 100644 --- a/newton/menu.js +++ b/newton/menu.js @@ -22,6 +22,9 @@ const load = (win) => { }, { label: 'Terminal', click: () => {} + }, { + label: "Quit", + click: () => win.webContents.send('menu-actions', "quit") } ] }, { diff --git a/newton/system-tray.js b/newton/system-tray.js index e9a79c5..b21f488 100644 --- a/newton/system-tray.js +++ b/newton/system-tray.js @@ -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") } ]; diff --git a/src/app/editor/editors.component.ts b/src/app/editor/editors.component.ts index a821f75..e1fd93c 100644 --- a/src/app/editor/editors.component.ts +++ b/src/app/editor/editors.component.ts @@ -233,6 +233,9 @@ export class EditorsComponent { editor.showSettingsMenu(); case "show-about": break; + case "quit": + window.main.quit(); + break; default: editor.execCommand(action); }