diff options
author | 2021-12-02 23:57:13 +0100 | |
---|---|---|
committer | 2021-12-03 04:27:13 +0530 | |
commit | f64f1b3bd9bec4036748b98ff8ac0f0431749f30 (patch) | |
tree | 33691b4b02a546a7a1665ca29b18e3baa135c9ef /src/lib/Tray.js | |
parent | 5.6.4-nightly.22 [skip ci] (diff) | |
download | ferdium-app-f64f1b3bd9bec4036748b98ff8ac0f0431749f30.tar.gz ferdium-app-f64f1b3bd9bec4036748b98ff8ac0f0431749f30.tar.zst ferdium-app-f64f1b3bd9bec4036748b98ff8ac0f0431749f30.zip |
chore: upgrade commitlint and eslint-plugin-unicorn to latest (#2295)
- upgrade commitlint and eslint-plugin-unicorn dependencies
- update prepare-code script to run lint:fix instead of lint
- fix unicorn/no-await-expression-member lint issues
- various whitespace formatting fixes due to lint:fix
Diffstat (limited to 'src/lib/Tray.js')
-rw-r--r-- | src/lib/Tray.js | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/lib/Tray.js b/src/lib/Tray.js index 655dc416f..63382483e 100644 --- a/src/lib/Tray.js +++ b/src/lib/Tray.js | |||
@@ -33,15 +33,20 @@ export default class TrayIcon { | |||
33 | 33 | ||
34 | mainWindow = null; | 34 | mainWindow = null; |
35 | 35 | ||
36 | trayMenuTemplate = (tray) => [ | 36 | trayMenuTemplate = tray => [ |
37 | { | 37 | { |
38 | label: (tray.mainWindow.isVisible() && tray.mainWindow.isFocused()) ? 'Hide Ferdi' : 'Show Ferdi', | 38 | label: |
39 | tray.mainWindow.isVisible() && tray.mainWindow.isFocused() | ||
40 | ? 'Hide Ferdi' | ||
41 | : 'Show Ferdi', | ||
39 | click() { | 42 | click() { |
40 | tray._toggleWindow(); | 43 | tray._toggleWindow(); |
41 | }, | 44 | }, |
42 | }, | 45 | }, |
43 | { | 46 | { |
44 | label: tray.isAppMuted ? 'Enable Notifications && Audio' : 'Disable Notifications && Audio', | 47 | label: tray.isAppMuted |
48 | ? 'Enable Notifications && Audio' | ||
49 | : 'Disable Notifications && Audio', | ||
45 | click() { | 50 | click() { |
46 | if (!tray.mainWindow) return; | 51 | if (!tray.mainWindow) return; |
47 | tray.mainWindow.webContents.send('muteApp'); | 52 | tray.mainWindow.webContents.send('muteApp'); |