Skip to content

Commit f46212c

Browse files
committed
fix: update titleBarStyle for cross-platform compatibility
1 parent cbaf99f commit f46212c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,12 @@ else {
3030

3131
function createWindow() {
3232
const bounds = store.app.get('bounds')
33+
3334
mainWindow = new BrowserWindow({
3435
width: 1200,
3536
height: 800,
3637
...bounds,
37-
titleBarStyle: 'hidden',
38+
titleBarStyle: process.platform === 'darwin' ? 'hidden' : 'default',
3839
webPreferences: {
3940
preload: path.join(__dirname, 'preload.js'),
4041
nodeIntegration: true,

0 commit comments

Comments
 (0)