click event on tray does not work
See original GitHub issueNWJS Version : 0.34.5 Operating System : Windows 10
Expected behavior
Click on tray icon, the click-event-callback should be invoked.
Actual behavior
the callback is not invoked.
How to reproduce
It doesn’t happen certainly, but it happens frequently. I don’t find a way to reproduce this issue.
Sometimes it happens rightly after app starting up. Sometimes you must wait a long time before it happens again.
Other infomation
The main page is not navigated.
When this happens, the tooltip and icon of the tray can be updated, so I am sure that the tray is not GCed,
When this happens, I try to remove current tray, and create a new tray, but still, the callback is not invoked.
When this happens, chrome.runtime.reload()
should make the app re-initialize the tray, but still, the callback is not invoked.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
c# - Electron.NET Tray Icon - Click to show app instead of ...
C# Blazor with Electron.NET Tray icon opens tray menu regardless of if it's right or left click. How do I disable opening the...
Read more >NotifyTrayClick() : Notifies when AHK tray icon is clicked
I suggest using only Button up/Double click event for one mouse button. ... by a Button down event. It is easy to work-around...
Read more >Tray
There is no way temporarily hide a tray icon. Event: click. Emitted when user clicks the menu item with left mouse button. You...
Read more >System Tray Icon Double / Single Click Issue. - MSDN
I created System Tray Icon and added two click Events Double Click, Single Click. i tried mouse click and normal both click. SysTray....
Read more >System Tray
libappindicator3 is unmaintained and does not exist on some distros like debian11 ... Also, Tauri emits tray icon click events. Use the on_system_tray_event ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve created a simplified version to reproduce the issue.
Tray-Bug-Example.zip
Note that if you remove the tray prior to causing a refresh this issue is prevented.
I have the same problem, is there a solution for this issue? In my case, I use MacOS.