aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2019-09-28 20:05:53 +0200
committerLibravatar Stefan Malzner <stefan@adlk.io>2019-09-28 20:05:53 +0200
commit077ad229bf4ef9e1ba22c8cf3ceb21c82dc77062 (patch)
tree19f805ab6f59cf404de2014ac31b920a4b789a60 /src/lib
parentenable touchbar in electron 6 (diff)
downloadferdium-app-077ad229bf4ef9e1ba22c8cf3ceb21c82dc77062.tar.gz
ferdium-app-077ad229bf4ef9e1ba22c8cf3ceb21c82dc77062.tar.zst
ferdium-app-077ad229bf4ef9e1ba22c8cf3ceb21c82dc77062.zip
fix(macOS): Only show services in Touch Bar that should be visible
closes #1627
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/TouchBar.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/TouchBar.js b/src/lib/TouchBar.js
index e10e53001..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