mirror of
https://github.com/Eugeny/tabby.git
synced 2024-11-29 09:18:26 +03:00
added "new window" to macOS dock menu - fixes #6037
This commit is contained in:
parent
7016688170
commit
3d841eb97c
@ -51,12 +51,18 @@ export class DockMenuService {
|
|||||||
}
|
}
|
||||||
if (this.hostApp.platform === Platform.macOS) {
|
if (this.hostApp.platform === Platform.macOS) {
|
||||||
this.electron.app.dock.setMenu(this.electron.Menu.buildFromTemplate(
|
this.electron.app.dock.setMenu(this.electron.Menu.buildFromTemplate(
|
||||||
[...this.profilesService.getRecentProfiles(), ...profiles].map(profile => ({
|
[
|
||||||
label: profile.name,
|
...[...this.profilesService.getRecentProfiles(), ...profiles].map(profile => ({
|
||||||
click: () => this.zone.run(async () => {
|
label: profile.name,
|
||||||
this.profilesService.openNewTabForProfile(profile)
|
click: () => this.zone.run(async () => {
|
||||||
}),
|
this.profilesService.openNewTabForProfile(profile)
|
||||||
})),
|
}),
|
||||||
|
})),
|
||||||
|
{
|
||||||
|
label: this.translate.instant('New Window'),
|
||||||
|
click: () => this.zone.run(() => this.hostApp.newWindow()),
|
||||||
|
},
|
||||||
|
],
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user