do not allow minimizing, and set the window handle to null on close
This commit is contained in:
parent
50b05be8fc
commit
4208ee0ec2
1 changed files with 3 additions and 3 deletions
|
|
@ -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();
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue