From 4208ee0ec2ded3d30aa99f8ee06578b0cc97ea11 Mon Sep 17 00:00:00 2001 From: Amelia Frost Date: Sun, 5 Apr 2026 20:17:06 -0700 Subject: [PATCH] do not allow minimizing, and set the window handle to null on close --- src/native/about.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/native/about.ts b/src/native/about.ts index 352a4e7..03dcfc1 100644 --- a/src/native/about.ts +++ b/src/native/about.ts @@ -18,6 +18,7 @@ export function createAboutWindow() { backgroundColor: "#191919", frame: true, resizable: false, + minimizable: false, parent: mainWindow, paintWhenInitiallyHidden: true, webPreferences: { @@ -37,8 +38,7 @@ export function createAboutWindow() { aboutWindow.show(); }); - aboutWindow.on("close", (e) => { - e.preventDefault(); - aboutWindow.hide(); + aboutWindow.on("closed", () => { + aboutWindow = null; }); }