Skip to content

Commit dc08e83

Browse files
committed
Fix issue with tray when compiled
1 parent 9ecd00d commit dc08e83

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

main.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,9 @@ app.whenReady().then(() => {
179179
});
180180

181181
// Create the tray icon
182-
tray = new Tray('icon1616.png');
182+
const path = require('path');
183+
const iconPath = path.join(__dirname, 'icon1616.png');
184+
tray = new Tray(iconPath);
183185

184186
const contextMenu = Menu.buildFromTemplate([
185187
{ label: 'Show App', click: () => s_mainWindow.show() },

0 commit comments

Comments
 (0)