From cbb682181430294aa175b7d0a592ba463be5c164 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Sun, 23 Dec 2018 20:56:39 +0100 Subject: [PATCH] don't set an empty jumplist --- terminus-terminal/src/services/dockMenu.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terminus-terminal/src/services/dockMenu.service.ts b/terminus-terminal/src/services/dockMenu.service.ts index 04f0ed42..e037059b 100644 --- a/terminus-terminal/src/services/dockMenu.service.ts +++ b/terminus-terminal/src/services/dockMenu.service.ts @@ -18,7 +18,7 @@ export class DockMenuService { update () { if (this.hostApp.platform === Platform.Windows) { - this.electron.app.setJumpList([{ + this.electron.app.setJumpList(this.config.store.terminal.profiles.length ? [{ type: 'custom', name: 'Profiles', items: this.config.store.terminal.profiles.map(profile => ({ @@ -29,7 +29,7 @@ export class DockMenuService { iconPath: process.execPath, iconIndex: 0, })) - }]) + }] : null) } if (this.hostApp.platform === Platform.macOS) { this.electron.app.dock.setMenu(this.electron.Menu.buildFromTemplate(