Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.

Commit fb0e036

Browse files
authored
Merge pull request #6 from ShaneShipston/patch-1
Option to show/hide menu on Windows / Linux
2 parents b03302b + 0621255 commit fb0e036

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/server/api/window.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ router.post('/open', (req, res) => {
9292
showDevTools,
9393
fullscreen,
9494
kiosk,
95+
autoHideMenuBar,
9596
} = req.body
9697

9798
if (state.windows[id]) {
@@ -135,7 +136,7 @@ router.post('/open', (req, res) => {
135136
titleBarStyle,
136137
vibrancy,
137138
focusable,
138-
autoHideMenuBar: true,
139+
autoHideMenuBar,
139140
...(process.platform === 'linux' ? {icon: state.icon} : {}),
140141
webPreferences: {
141142
backgroundThrottling: false,

0 commit comments

Comments
 (0)