aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/TouchBar.js
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2019-10-03 17:15:46 +0200
committerLibravatar Stefan Malzner <stefan@adlk.io>2019-10-03 17:15:46 +0200
commit6e5bf64ef3ef858a5cc40025f61f3b1cf550d4fe (patch)
tree0429f9b7af2ff312dfbdb4b184a6cbeec28969ca /src/lib/TouchBar.js
parentAutomatic i18n update (i18n.meetfranz.com) (diff)
parentupdate strings (diff)
downloadferdium-app-6e5bf64ef3ef858a5cc40025f61f3b1cf550d4fe.tar.gz
ferdium-app-6e5bf64ef3ef858a5cc40025f61f3b1cf550d4fe.tar.zst
ferdium-app-6e5bf64ef3ef858a5cc40025f61f3b1cf550d4fe.zip
Merge branch 'release/5.4.0' into i18n
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);