Context Menu: Begin a Group - Bug

In Context Menus, Begin A Group on an element is not respected when the item that comes before it is hidden (for example by @hidenosel).

For example:

  1. Go to File Types... > All files > File Type > Context Menu
  2. Create any item if there isn't one already (can be empty);
  3. Directly below it, create an item with @hidenosel:type=~(*.jpg);
  4. Directly below it, create another item. Make sure to set this to Begin a Group.

So now you'll have this show in the settings and when any .jpg is selected:

Item Step 2
Item Step 3


Item Step 4

However, if no .jpg is selected, it will show as:

Item Step 2
Item Step 4

The group separator will have disappeared. The expected behavior is that the line should still be there, similar to groups in Toolbars, for the element still is set to begin a different group.

1 Like

I just ran across this as well while building a Convert Image submenu.

No biggie, but it makes my pretty menus not as pretty, haha :sweat_smile:

This has been fixed for the next beta.

2 Likes

Cheers! The @hidenosel issue is verified fixed with version 13.13.1 :+1:

However, I also noticed a similar thing with Image CONVERT PRESET=!list where it doesn't draw a separator after the preset list, even if the next item has Begin group set.

Example:


It seems to work fine with the two other !list functions I could find though — Rename PRESET=!list and Find PRESET=!list — it's only the image converter preset list that seems bugged like this.

1 Like

Thanks! Fixed in the next update.

3 Likes