-
Allison Karlitskaya authored
Ignacio Casal Quinteiro reported a problem whereby an empty section at the start of a menu has a separator placed after it. This was caused by the implementation of the logic that separators should be inserted at the top of all non-empty sections that are not the first section. This logic is obviously incorrect in the case that the first section is empty (in which case we would not expect to see a separator at the top of the second section). Change the logic so that we only insert separators when we see a non-zero number of actual items in the menu before us. https://bugzilla.gnome.org/show_bug.cgi?id=721119
ba09124f