Fix: hidden titlebar with frameless mode on macOS

This commit is contained in:
cutls 2020-04-07 12:52:42 +09:00
parent 4839c64878
commit 0014890881

View File

@ -102,8 +102,10 @@ try {
var frameRaw = fs.readFileSync(frame_path, 'utf8')
if(frameRaw == 'false') {
var frame = false
var frameTitle = 'hidden'
} else {
var frame = true
var frameTitle = 'default'
}
} catch {
var frame = true
@ -186,6 +188,7 @@ function createWindow() {
y: window_size.y,
simpleFullscreen: true,
show: false,
titleBarStyle: frameTitle,
frame: frame,
}
}