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') var frameRaw = fs.readFileSync(frame_path, 'utf8')
if(frameRaw == 'false') { if(frameRaw == 'false') {
var frame = false var frame = false
var frameTitle = 'hidden'
} else { } else {
var frame = true var frame = true
var frameTitle = 'default'
} }
} catch { } catch {
var frame = true var frame = true
@ -186,6 +188,7 @@ function createWindow() {
y: window_size.y, y: window_size.y,
simpleFullscreen: true, simpleFullscreen: true,
show: false, show: false,
titleBarStyle: frameTitle,
frame: frame, frame: frame,
} }
} }