1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-12-24 19:13:31 +03:00

windows jumplist integration

This commit is contained in:
Eugene Pankov 2018-12-16 23:20:35 +01:00
parent 1da7c85973
commit 68c497e5fc

View File

@ -17,6 +17,20 @@ export class DockMenuService {
}
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) {
this.electron.app.dock.setMenu(this.electron.Menu.buildFromTemplate(
this.config.store.terminal.profiles.map(profile => ({