mirror of
https://github.com/Eugeny/tabby.git
synced 2024-11-10 12:16:34 +03:00
Only MacOS support app.dock (#410)
This commit is contained in:
parent
c285b89b6c
commit
f81bda1686
@ -47,6 +47,7 @@ if (argv.d) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
app.on('ready', () => {
|
app.on('ready', () => {
|
||||||
|
if (process.platform === 'darwin') {
|
||||||
app.dock.setMenu(Menu.buildFromTemplate([
|
app.dock.setMenu(Menu.buildFromTemplate([
|
||||||
{
|
{
|
||||||
label: 'New window',
|
label: 'New window',
|
||||||
@ -55,5 +56,6 @@ app.on('ready', () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
]))
|
]))
|
||||||
|
}
|
||||||
application.newWindow()
|
application.newWindow()
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user