Menus should hide unneeded separators
It is often that menu items are created/destroyed dinamycally (example: Windows menu that has items for the existing forms, sometimes none at all). Or there .Visible property is tinkered with.
If there was a separator item before or after this dynamic group - and the group runs empty - then the visuals become rather awkward.
LCL should be smart enough to hide the separator lines if
- There is nothing before (upwards or leftwards) from it.
- There is nothing after (downwards or rightwards) from it.
- There are 2+ separators going one after another.
Just like VCL is: http://docwiki.embarcadero.com/Libraries/en/Vcl.Menus.TMenu.AutoLineReduction