mirror of
https://github.com/Eugeny/tabby.git
synced 2025-04-12 16:10:26 +08:00
don't set an empty jumplist
This commit is contained in:
parent
75bf374a8f
commit
cbb6821814
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user