Skip to content

Commit 3cb2122

Browse files
authored
Merge pull request RocketChat#361 from thehutman/FixTrayIcon353
Fix to put tray object in mainWindow allowing for tray icon alerts to work
2 parents 0ed64f1 + 087a438 commit 3cb2122

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/scripts/tray.js

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ const _iconTrayAlert = path.join(__dirname, 'images', icons[process.platform].di
2727

2828
function createAppTray () {
2929
const _tray = new Tray(_iconTray);
30+
mainWindow.tray = _tray;
31+
3032
const contextMenuShow = Menu.buildFromTemplate([{
3133
label: 'Show',
3234
click () {

0 commit comments

Comments
 (0)