Electron.Tray.OnDoubleClick not working when Electron.Tray.Destroy() has been called #582

Closed
opened 2026-01-29 16:43:25 +00:00 by claunia · 1 comment
Owner

Originally created by @ruohki on GitHub (Oct 31, 2020).

Originally assigned to: @GregorBiswanger on GitHub.

Recreating a Tray menu for example because you have a checkbox item that should trigger logic will break OnDoubleClick even if you rebind the handler. It just works upon the first creation

  • latest
  • latest
  • Windows

Steps to Reproduce:

  1. Create a Tray menu and register OnDoubleClick.
  2. Destroy the Tray from a menu item and recreate, rebind OnDoubleClick
  3. DoubleClick not triggering anymore
Originally created by @ruohki on GitHub (Oct 31, 2020). Originally assigned to: @GregorBiswanger on GitHub. <!-- Please search for existing issues to avoid creating duplicates. --> Recreating a Tray menu for example because you have a checkbox item that should trigger logic will break OnDoubleClick even if you rebind the handler. It just works upon the first creation <!-- Which version of Electron.NET CLI and API are you using? --> <!-- Please always try to use the latest version before the report. --> * latest <!-- Which version of .NET Core and Node.js are you using (if applicable)? --> * latest <!-- What target are you building for? --> * Windows <!-- Enter your issue details below this comment. --> <!-- If you want, you can donate to increase issue priority (https://donorbox.org/electron-net) --> Steps to Reproduce: 1. Create a Tray menu and register OnDoubleClick. 2. Destroy the Tray from a menu item and recreate, rebind OnDoubleClick 3. DoubleClick not triggering anymore
claunia added the bug label 2026-01-29 16:43:25 +00:00
Author
Owner

@GregorBiswanger commented on GitHub (Mar 28, 2023):

🎉🚀 New Electron.NET version 23.6.1 released 🚀🎉

With native Electron 23 and .NET 6 support. Your problem should be fixed here. If you continue to have the problem, please let us know. Please note the correct updating of your API & CLI. Info in the README. Have fun!

@GregorBiswanger commented on GitHub (Mar 28, 2023): 🎉🚀 New Electron.NET version 23.6.1 released 🚀🎉 With native Electron 23 and .NET 6 support. Your problem should be fixed here. If you continue to have the problem, please let us know. Please note the correct updating of your API & CLI. Info in the README. Have fun!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#582