felixhao28 / node-systray

A cross-platform systray library for nodejs.
https://www.npmjs.com/package/systray2
MIT License
32 stars 8 forks source link

Feature request : add/delete item #15

Closed ghost closed 2 years ago

ghost commented 2 years ago

This feature request depends on the following issue : https://github.com/felixhao28/systray-portable/issues/4

In the meantime, if found a way to make a dynamic menu by creating many (99) hidden entries and sub-entries and show/hide & update them using sendAction.

felixhao28 commented 2 years ago

The upstream project https://github.com/getlantern/systray does not provide a way to delete a menuItem dynamically. Therefore, the current best solution is to show/hide the items. And that's exactly what I am doing in my other projects.