Merge pull request #2790 from h3poteto/iss-2789

refs #2789 Enable title bar in Windows
This commit is contained in:
AkiraFukushima 2021-10-02 15:51:44 +09:00 committed by GitHub
commit 266ce8cfee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -313,8 +313,11 @@ async function createWindow() {
defaultWidth: 1000,
defaultHeight: 563
})
const titleBarStyle = process.platform === 'win32' ? 'default' : 'hidden'
const mainOpts: BrowserWindowConstructorOptions = {
titleBarStyle: 'hidden',
titleBarStyle: titleBarStyle,
x: mainWindowState.x,
y: mainWindowState.y,
width: mainWindowState.width,