From 2cfdcee607174cca658aa8e779ae5ae088717d3b Mon Sep 17 00:00:00 2001 From: OrigamingWasTaken <74014262+OrigamingWasTaken@users.noreply.github.com> Date: Mon, 1 Jul 2024 12:17:38 +0200 Subject: [PATCH] Attempt at fixing false crash reports --- frontend/src/windows/main/App.svelte | 2 +- frontend/src/windows/main/ts/window.ts | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/frontend/src/windows/main/App.svelte b/frontend/src/windows/main/App.svelte index ac7201b..5063225 100644 --- a/frontend/src/windows/main/App.svelte +++ b/frontend/src/windows/main/App.svelte @@ -23,7 +23,7 @@ w.hide().catch(console.error); await launchRoblox(); setTimeout(()=>{ - app.exit(0) + app.exit() },7000) } } diff --git a/frontend/src/windows/main/ts/window.ts b/frontend/src/windows/main/ts/window.ts index 26d4688..269e284 100644 --- a/frontend/src/windows/main/ts/window.ts +++ b/frontend/src/windows/main/ts/window.ts @@ -4,7 +4,7 @@ import {getMode} from './env'; import hotkeys from 'hotkeys-js'; events .on('windowClose', () => { - app.exit(0).catch(console.error); + app.exit().catch(console.error); }) .catch(console.error) .then(() => { @@ -35,13 +35,13 @@ hotkeys('ctrl+z,cmd+z', (e) => { hotkeys('cmd+q,cmd+w', (e) => { e.preventDefault(); - app.exit(0); + app.exit(); }); -hotkeys('ctrl+a,cmd+a', (e) => { - e.preventDefault(); - document.execCommand('selectAll'); -}); +// hotkeys('ctrl+a,cmd+a', (e) => { +// e.preventDefault(); +// document.execCommand('selectAll'); +// }); export async function focusWindow() { try {