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",
|
||||
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;
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue