diff options
Diffstat (limited to 'src/lib/Tray.js')
-rw-r--r-- | src/lib/Tray.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/lib/Tray.js b/src/lib/Tray.js index 588fa75bf..669b02709 100644 --- a/src/lib/Tray.js +++ b/src/lib/Tray.js | |||
@@ -1,4 +1,6 @@ | |||
1 | import { app, Tray, Menu, systemPreferences, nativeImage } from 'electron'; | 1 | import { |
2 | app, Tray, Menu, systemPreferences, nativeImage, | ||
3 | } from 'electron'; | ||
2 | import path from 'path'; | 4 | import path from 'path'; |
3 | 5 | ||
4 | const FILE_EXTENSION = process.platform === 'win32' ? 'ico' : 'png'; | 6 | const FILE_EXTENSION = process.platform === 'win32' ? 'ico' : 'png'; |
@@ -7,7 +9,9 @@ const INDICATOR_TRAY_UNREAD = 'tray-unread'; | |||
7 | 9 | ||
8 | export default class TrayIcon { | 10 | export default class TrayIcon { |
9 | trayIcon = null; | 11 | trayIcon = null; |
12 | |||
10 | indicator = 0; | 13 | indicator = 0; |
14 | |||
11 | themeChangeSubscriberId = null; | 15 | themeChangeSubscriberId = null; |
12 | 16 | ||
13 | show() { | 17 | show() { |
@@ -79,7 +83,7 @@ export default class TrayIcon { | |||
79 | } | 83 | } |
80 | 84 | ||
81 | return nativeImage.createFromPath(path.join( | 85 | return nativeImage.createFromPath(path.join( |
82 | __dirname, '..', 'assets', 'images', type, platform, `${asset}.${FILE_EXTENSION}`), | 86 | __dirname, '..', 'assets', 'images', type, platform, `${asset}.${FILE_EXTENSION}`, |
83 | ); | 87 | )); |
84 | } | 88 | } |
85 | } | 89 | } |