mirror of
https://github.com/h3poteto/whalebird-desktop
synced 2025-02-03 10:47:34 +01:00
refs #377 Add dock menu only mac
This commit is contained in:
parent
2514c587ac
commit
937662b92f
@ -265,8 +265,10 @@ async function createWindow () {
|
||||
/**
|
||||
* Set dock menu for mac
|
||||
*/
|
||||
const dockMenu = Menu.buildFromTemplate(accountsChange)
|
||||
app.dock.setMenu(dockMenu)
|
||||
if (process.platform === 'darwin') {
|
||||
const dockMenu = Menu.buildFromTemplate(accountsChange)
|
||||
app.dock.setMenu(dockMenu)
|
||||
}
|
||||
|
||||
/**
|
||||
* Initial window options
|
||||
|
Loading…
x
Reference in New Issue
Block a user