We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bae923 commit b551b33Copy full SHA for b551b33
1 file changed
app/utils/devMenu.js
@@ -23,10 +23,14 @@ const getBarItems = bar =>
23
.map(key => bar[key])
24
.filter(barItem => !!barItem);
25
const setTouchBar = () =>
26
- currentWindow.setTouchBar([
27
- ...getBarItems(leftBar),
28
- ...(isSliderEnabled ? getBarItems(rightBar) : []),
29
- ]);
+ currentWindow.setTouchBar(
+ new remote.TouchBar({
+ items: [
+ ...getBarItems(leftBar),
30
+ ...(isSliderEnabled ? getBarItems(rightBar) : []),
31
+ ],
32
+ })
33
+ );
34
35
const invokeDevMenuMethod = ({ name, args }) =>
36
worker && worker.postMessage({ method: 'invokeDevMenuMethod', name, args });
0 commit comments