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",
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;
});
}