mirror of
https://github.com/Eugeny/tabby.git
synced 2025-10-04 22:14:55 +00:00
windows jumplist integration
This commit is contained in:
@@ -17,6 +17,20 @@ export class DockMenuService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
update () {
|
update () {
|
||||||
|
if (this.hostApp.platform === Platform.Windows) {
|
||||||
|
this.electron.app.setJumpList([{
|
||||||
|
type: 'custom',
|
||||||
|
name: 'Profiles',
|
||||||
|
items: this.config.store.terminal.profiles.map(profile => ({
|
||||||
|
type: 'task',
|
||||||
|
program: process.execPath,
|
||||||
|
args: `profile "${profile.name}"`,
|
||||||
|
title: profile.name,
|
||||||
|
iconPath: process.execPath,
|
||||||
|
iconIndex: 0,
|
||||||
|
}))
|
||||||
|
}])
|
||||||
|
}
|
||||||
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.config.store.terminal.profiles.map(profile => ({
|
this.config.store.terminal.profiles.map(profile => ({
|
||||||
|
Reference in New Issue
Block a user