Make everything pointer like
This commit is contained in:
parent
2ba937289c
commit
60cc862031
10 changed files with 15 additions and 15 deletions
|
@ -50,13 +50,13 @@ class TouchBar extends EventEmitter {
|
|||
})
|
||||
}
|
||||
|
||||
replaceEscapeItem(item) {
|
||||
setEscapeItem(item) {
|
||||
if (!item) item = {}
|
||||
Object.keys(this.windows).forEach((windowID) => {
|
||||
const window = this.windows[windowID]
|
||||
window._setEscapeTouchBarItem(item)
|
||||
})
|
||||
this._escape = item;
|
||||
this._escape = item
|
||||
}
|
||||
|
||||
_addToWindow (window) {
|
||||
|
@ -90,7 +90,7 @@ class TouchBar extends EventEmitter {
|
|||
}
|
||||
window.once('closed', removeListeners)
|
||||
this.windowListeners[id] = removeListeners
|
||||
this.windows[id] = window;
|
||||
this.windows[id] = window
|
||||
|
||||
window._setTouchBarItems(this.ordereredItems)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue