Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows 10 Tray Icon click events and menu events no longer work #8248

Open
x90slide opened this issue Jan 23, 2025 · 1 comment
Open

Windows 10 Tray Icon click events and menu events no longer work #8248

x90slide opened this issue Jan 23, 2025 · 1 comment

Comments

@x90slide
Copy link

Minimal Reproduction Example

  1. clone https://github.com/nwutils/nw-tray-example/
  2. pin version of nw to latest or at least "nw": "0.94.0-sdk" when the issue first appears to arise
  3. right click on tray icon and click show window and nothing happens
  4. downgrade to version 0.93.0-sdk
  5. right click on tray icon and click show window and it works

It appears that events simply are not triggered and callbacks not executed

@vankasteelj
Copy link

vankasteelj commented Feb 16, 2025

I have the same issue, it worked with 0.93 as well, but no longer with 0.95

require('nw.gui').Window.get().tray.on('click', () => {
  // this is never executed
})

vankasteelj added a commit to vankasteelj/frak that referenced this issue Feb 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants