-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
NW.js icon on the taskbar when you open a tray menu #6859
Comments
Confirmed that issue only occurs in Reproduction |
Same issue at 0.37.3 |
I can reproduce this with v0.34 & later version. |
Confirmed the issue and it is still happening in the latest version [nwjs-sdk-v0.39.0-win-x64]. |
One year has passed, v0.42.4 has been released, but the issue still not fix. |
@rogerwang: Is there a way I can handle this in code? That is on right-click on tray icon I should be able to hide nwjs icon on the taskbar . |
@anurag2911 the tray.on('click', function (evt) {
nw.Window.get().showDevTools();
console.log(evt.x);
console.log(evt.y);
}); Using the x,y coords, you could spawn a custom frameless window that simulates a menu at that location. Frameless windows with |
The diff between the versions is pretty small, could you identify the cause? |
I can no longer reproduce this since version 0.48.0, including the latest release (0.55.0). Tested on Windows 7 and Windows 10. The issue occurred between 0.34 and 0.47. Closing this issue as it is no longer occurring. |
NW.js Version: sdk-v0.34.1
Operating System: Windows 10 x64, Windows 7 x64
How to reproduce
You can use the code for create simple tray object and hide main window:
After this, if you open tray context menu, nwjs icon show on thw windows taskbar:
https://youtu.be/8CHHSMFjsGk
The text was updated successfully, but these errors were encountered: