diff options
author | Stefan Malzner <stefan@adlk.io> | 2019-09-28 20:05:53 +0200 |
---|---|---|
committer | Stefan Malzner <stefan@adlk.io> | 2019-09-28 20:05:53 +0200 |
commit | 077ad229bf4ef9e1ba22c8cf3ceb21c82dc77062 (patch) | |
tree | 19f805ab6f59cf404de2014ac31b920a4b789a60 /src/lib | |
parent | enable touchbar in electron 6 (diff) | |
download | ferdium-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.js | 2 |
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 |