Closed
Description
Preflight Checklist
- I have read the Contributing Guidelines for this project.
- I agree to follow the Code of Conduct that this project adheres to.
- I have searched the issue tracker for a feature request that matches the one I want to file, without success.
Electron Version
15.3.0
What operating system are you using?
macOS
Operating System Version
macOS Big Sur 11.6
What arch are you using?
arm64 (including Apple Silicon)
Last Known Working Electron version
No response
Expected Behavior
Tray Icon would stay in the tray.
Actual Behavior
Tray Icon disappears after several seconds.
Testcase Gist URL
No response
Additional Information
const { app, Tray, nativeImage } = require('electron');
const path = require('path');
let tray = null;
app.whenReady().then(() => {
const icon = nativeImage.createFromPath(
path.join(__dirname, './assets/icon.png')
);
tray = new Tray('src/assets/icon.png');
tray.setTitle('Attention App');
});