From 68c497e5fc14a09da6ec896d9907466db8dd9772 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Sun, 16 Dec 2018 23:20:35 +0100 Subject: [PATCH] windows jumplist integration --- terminus-terminal/src/services/dockMenu.service.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/terminus-terminal/src/services/dockMenu.service.ts b/terminus-terminal/src/services/dockMenu.service.ts index 5f68f6b2..1adb962d 100644 --- a/terminus-terminal/src/services/dockMenu.service.ts +++ b/terminus-terminal/src/services/dockMenu.service.ts @@ -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 => ({