Merge "If two plugins contribute the same top menu display it only once"

This commit is contained in:
Shawn Pearce
2013-10-11 18:00:45 +00:00
committed by Gerrit Code Review

View File

@@ -831,7 +831,8 @@ public class Gerrit implements EntryPoint {
for (TopMenuItem item : Natives.asList(menu.getItems())) {
addExtensionLink(bar, item);
}
if (existingBar == null ) {
if (existingBar == null) {
menuBars.put(menu.getName(), bar);
menuLeft.add(bar, menu.getName());
}
}