|
@@ -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)
|
|
|
|