ikas-mc / ContextMenuForWindows11

Add Custom Context Menu For Windows11
GNU Lesser General Public License v3.0
1.85k stars 90 forks source link

Ability to show menu conditionally based on previously clicked menu item #136

Open TJGinis opened 2 months ago

TJGinis commented 2 months ago

This is not an issue

I wrote an applet that makes hard and symbolic links. It would be great if I could add that functionality to this context menu. The idea is simple, it would work similarly to how copy and paste work in the menu: paste only shows if you have something copied. In the case of making links, the menu item (or icon) to create the link(s) would only appear after the user has first clicked the menu item for "copy as path".

ikas-mc commented 2 months ago

add two menus,one for save the current path and one for read the path and do the work.

Or refer to this source code to implement it directly