initial work on updating touch bar item config without rerender
This commit is contained in:
parent
61949657f0
commit
dd09c91cf2
10 changed files with 98 additions and 27 deletions
|
@ -212,6 +212,12 @@ BrowserWindow.prototype.setTouchBar = function (touchBar) {
|
|||
} else {
|
||||
this._setTouchBar(touchBar.toJSON())
|
||||
}
|
||||
touchBar._owner = this
|
||||
touchBar.items.forEach((item) => { item._owner = this; })
|
||||
}
|
||||
|
||||
BrowserWindow.prototype._updateTouchBarItem = function (itemID) {
|
||||
this._refreshTouchBarItem(itemID);
|
||||
}
|
||||
|
||||
module.exports = BrowserWindow
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue