aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/TouchBar.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/TouchBar.js')
-rw-r--r--src/lib/TouchBar.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/TouchBar.js b/src/lib/TouchBar.js
index 97c02d194..1de46d2a3 100644
--- a/src/lib/TouchBar.js
+++ b/src/lib/TouchBar.js
@@ -29,7 +29,7 @@ export default class FranzTouchBar {
29 const { TouchBarButton, TouchBarSpacer } = TouchBar; 29 const { TouchBarButton, TouchBarSpacer } = TouchBar;
30 30
31 const buttons = []; 31 const buttons = [];
32 this.stores.services.enabled.forEach(((service) => { 32 this.stores.services.allDisplayed.forEach(((service) => {
33 buttons.push(new TouchBarButton({ 33 buttons.push(new TouchBarButton({
34 label: `${service.name}${service.unreadDirectMessageCount > 0 34 label: `${service.name}${service.unreadDirectMessageCount > 0
35 ? ' 🔴' : ''} ${service.unreadDirectMessageCount === 0 35 ? ' 🔴' : ''} ${service.unreadDirectMessageCount === 0
@@ -42,7 +42,7 @@ export default class FranzTouchBar {
42 }), new TouchBarSpacer({ size: 'small' })); 42 }), new TouchBarSpacer({ size: 'small' }));
43 })); 43 }));
44 44
45 const touchBar = new TouchBar(buttons); 45 const touchBar = new TouchBar({ items: buttons });
46 currentWindow.setTouchBar(touchBar); 46 currentWindow.setTouchBar(touchBar);
47 } else { 47 } else {
48 currentWindow.setTouchBar(null); 48 currentWindow.setTouchBar(null);