Skip to content

Commit

Permalink
Fix issue with setTitleBarOverlay method on non-win32 platforms.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoro committed Aug 9, 2023
1 parent 2cfc649 commit 79cabb6
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions app/lib/window.ts
Expand Up @@ -392,14 +392,15 @@ export class Window {
return
}

const symbolColor: string = theme.foreground

this.window.setTitleBarOverlay(
{
symbolColor: symbolColor,
height: 32,
},
)
if (process.platform === 'win32') {
const symbolColor: string = theme.foreground
this.window.setTitleBarOverlay(
{
symbolColor: symbolColor,
height: 32,
},
)
}
})

ipcMain.on('window-set-title', (event, title) => {
Expand Down

0 comments on commit 79cabb6

Please sign in to comment.