aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/Tray.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Tray.js')
-rw-r--r--src/lib/Tray.js11
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');