do not allow minimizing, and set the window handle to null on close

This commit is contained in:
Amelia Frost 2026-04-05 20:17:06 -07:00
parent 50b05be8fc
commit 4208ee0ec2
No known key found for this signature in database

View file

@ -18,6 +18,7 @@ export function createAboutWindow() {
backgroundColor: "#191919", backgroundColor: "#191919",
frame: true, frame: true,
resizable: false, resizable: false,
minimizable: false,
parent: mainWindow, parent: mainWindow,
paintWhenInitiallyHidden: true, paintWhenInitiallyHidden: true,
webPreferences: { webPreferences: {
@ -37,8 +38,7 @@ export function createAboutWindow() {
aboutWindow.show(); aboutWindow.show();
}); });
aboutWindow.on("close", (e) => { aboutWindow.on("closed", () => {
e.preventDefault(); aboutWindow = null;
aboutWindow.hide();
}); });
} }