question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

click event on tray does not work

See original GitHub issue

NWJS 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:open
  • Created 5 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
TheJaredWilcurtcommented, Dec 3, 2018

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.

0reactions
helderkcommented, Dec 21, 2022

I have the same problem, is there a solution for this issue? In my case, I use MacOS.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found