From ae60905eb423bccc5f75a39d1ef864944bcb54c7 Mon Sep 17 00:00:00 2001 From: itdominator <1itdominator@gmail.com> Date: Mon, 14 Jul 2025 23:42:51 -0500 Subject: [PATCH] Adding quit to menus --- newton/menu.js | 3 +++ newton/system-tray.js | 3 +++ src/app/editor/editors.component.ts | 3 +++ 3 files changed, 9 insertions(+) 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); }