mirror of
https://github.com/Eugeny/tabby.git
synced 2025-01-18 14:04:17 +08:00
Only MacOS support app.dock (#410)
This commit is contained in:
parent
c285b89b6c
commit
f81bda1686
@ -47,13 +47,15 @@ if (argv.d) {
|
||||
}
|
||||
|
||||
app.on('ready', () => {
|
||||
app.dock.setMenu(Menu.buildFromTemplate([
|
||||
{
|
||||
label: 'New window',
|
||||
click () {
|
||||
this.app.newWindow()
|
||||
if (process.platform === 'darwin') {
|
||||
app.dock.setMenu(Menu.buildFromTemplate([
|
||||
{
|
||||
label: 'New window',
|
||||
click () {
|
||||
this.app.newWindow()
|
||||
}
|
||||
}
|
||||
}
|
||||
]))
|
||||
]))
|
||||
}
|
||||
application.newWindow()
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user