fix: Sda 1746 (#876)

* sda-1746 do not start pop out in full screen mode

* sda-1746 do not allow about and screen-picker dialogs to go full screen

* sda-1746 change fullscreenable to fullscreen
This commit is contained in:
Johan Kwarnmark 2020-02-18 14:14:19 +01:00 committed by GitHub
parent 2e994e3680
commit 5099d0d190
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -153,6 +153,7 @@ export const handleChildWindow = (webContents: WebContents): void => {
newWinOptions.alwaysOnTop = mainWindow.isAlwaysOnTop(); newWinOptions.alwaysOnTop = mainWindow.isAlwaysOnTop();
newWinOptions.frame = true; newWinOptions.frame = true;
newWinOptions.winKey = newWinKey; newWinOptions.winKey = newWinKey;
newWinOptions.fullscreen = false;
const childWebContents: WebContents = newWinOptions.webContents; const childWebContents: WebContents = newWinOptions.webContents;
// Event needed to hide native menu bar // Event needed to hide native menu bar

View File

@ -513,6 +513,7 @@ export class WindowHandler {
modal: true, modal: true,
alwaysOnTop: isMac, alwaysOnTop: isMac,
resizable: false, resizable: false,
fullscreenable: false,
}, { }, {
devTools: false, devTools: false,
}); });
@ -565,6 +566,7 @@ export class WindowHandler {
height: isMac ? 519 : 523, height: isMac ? 519 : 523,
width: 580, width: 580,
show: false, show: false,
fullscreenable: false,
}, { }, {
devTools: false, devTools: false,
}); });