Allow items to be assigned to multiple popovers
This commit is contained in:
parent
f05dfc74da
commit
2fd62d090a
2 changed files with 33 additions and 23 deletions
|
@ -223,7 +223,10 @@ TouchBar.TouchBarPopover = class TouchBarPopover extends TouchBarItem {
|
|||
if (!(this.child instanceof TouchBar)) {
|
||||
this.child = new TouchBar(this.child)
|
||||
}
|
||||
this.child.ordereredItems.forEach((item) => item._popover = this.id)
|
||||
this.child.ordereredItems.forEach((item) => {
|
||||
item._popover = item._popover || []
|
||||
if (!item._popover.find(itemID => itemID === this.id)) item._popover.push(this.id)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue