diff options
author | Atakan Goktepe <atakangktepe@gmail.com> | 2017-10-26 21:36:17 +0300 |
---|---|---|
committer | Atakan Goktepe <atakangktepe@gmail.com> | 2017-10-27 10:50:36 +0300 |
commit | cbbf3e7ee69f563d3107af6ce9197171b53f964b (patch) | |
tree | 87e66f7d5e622c81af651a480849e220a92c8767 /src/lib/Tray.js | |
parent | Fixed 'Show Franz' button in tray (diff) | |
download | ferdium-app-cbbf3e7ee69f563d3107af6ce9197171b53f964b.tar.gz ferdium-app-cbbf3e7ee69f563d3107af6ce9197171b53f964b.tar.zst ferdium-app-cbbf3e7ee69f563d3107af6ce9197171b53f964b.zip |
Removed mainWindow parameter from Tray class
Diffstat (limited to 'src/lib/Tray.js')
-rw-r--r-- | src/lib/Tray.js | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/lib/Tray.js b/src/lib/Tray.js index 2101d1503..525ce592e 100644 --- a/src/lib/Tray.js +++ b/src/lib/Tray.js | |||
@@ -6,13 +6,8 @@ const INDICATOR_TRAY_PLAIN = 'tray'; | |||
6 | const INDICATOR_TRAY_UNREAD = 'tray-unread'; | 6 | const INDICATOR_TRAY_UNREAD = 'tray-unread'; |
7 | 7 | ||
8 | export default class TrayIcon { | 8 | export default class TrayIcon { |
9 | mainWindow = null; | ||
10 | trayIcon = null; | 9 | trayIcon = null; |
11 | 10 | ||
12 | constructor(mainWindow) { | ||
13 | this.mainWindow = mainWindow; | ||
14 | } | ||
15 | |||
16 | show() { | 11 | show() { |
17 | if (this.trayIcon) return; | 12 | if (this.trayIcon) return; |
18 | 13 | ||
@@ -35,7 +30,7 @@ export default class TrayIcon { | |||
35 | this.trayIcon.setContextMenu(trayMenu); | 30 | this.trayIcon.setContextMenu(trayMenu); |
36 | 31 | ||
37 | this.trayIcon.on('click', () => { | 32 | this.trayIcon.on('click', () => { |
38 | this.mainWindow.show(); | 33 | app.mainWindow.show(); |
39 | }); | 34 | }); |
40 | } | 35 | } |
41 | 36 | ||