From 2bfab2f3da27b027367530409cc79529c62cfa90 Mon Sep 17 00:00:00 2001 From: kts of kettek Date: Sat, 24 Feb 2024 00:16:32 -0800 Subject: [PATCH] Allow quitting via shortcut and menu option --- frontend/src/App.svelte | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/src/App.svelte b/frontend/src/App.svelte index d872bdd..d741d47 100644 --- a/frontend/src/App.svelte +++ b/frontend/src/App.svelte @@ -158,6 +158,10 @@ showNew = false } + + function engageQuit() { + (window as any).runtime.Quit() + } function engageCopy() { if (!focusedFile) return @@ -226,7 +230,7 @@ showImport = true}/> - +
Edit
@@ -304,6 +308,7 @@ engageDelete(true)} /> engageDelete(false)} /> engagePaste()} /> + engageQuit()} />