From f7a2d0e4eea4ab42421e713d90e2de9a790988d4 Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Sat, 28 Jun 2025 01:51:19 +0200 Subject: [PATCH] Make fuck --- src-tauri/capabilities/default.json | 1 + src/pages/Index.tsx | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src-tauri/capabilities/default.json b/src-tauri/capabilities/default.json index b4a8651..387613c 100644 --- a/src-tauri/capabilities/default.json +++ b/src-tauri/capabilities/default.json @@ -8,6 +8,7 @@ "permissions": [ "core:default", "opener:default", + "core:window:allow-close", "core:window:allow-minimize" ] } \ No newline at end of file diff --git a/src/pages/Index.tsx b/src/pages/Index.tsx index 9877901..9244ed9 100644 --- a/src/pages/Index.tsx +++ b/src/pages/Index.tsx @@ -653,9 +653,10 @@ const Index = () => { // Minimize the window try { const win = await Window.getCurrent(); - await win.minimize(); + await win.close(); + } catch (error) { - console.error('Failed to minimize window:', error); + console.error('Failed to close window:', error); } } } catch (error) {