mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-28 23:39:53 +00:00
don't set an empty jumplist
This commit is contained in:
parent
75bf374a8f
commit
cbb6821814
@ -18,7 +18,7 @@ export class DockMenuService {
|
|||||||
|
|
||||||
update () {
|
update () {
|
||||||
if (this.hostApp.platform === Platform.Windows) {
|
if (this.hostApp.platform === Platform.Windows) {
|
||||||
this.electron.app.setJumpList([{
|
this.electron.app.setJumpList(this.config.store.terminal.profiles.length ? [{
|
||||||
type: 'custom',
|
type: 'custom',
|
||||||
name: 'Profiles',
|
name: 'Profiles',
|
||||||
items: this.config.store.terminal.profiles.map(profile => ({
|
items: this.config.store.terminal.profiles.map(profile => ({
|
||||||
@ -29,7 +29,7 @@ export class DockMenuService {
|
|||||||
iconPath: process.execPath,
|
iconPath: process.execPath,
|
||||||
iconIndex: 0,
|
iconIndex: 0,
|
||||||
}))
|
}))
|
||||||
}])
|
}] : null)
|
||||||
}
|
}
|
||||||
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(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user