mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
skip separator at the top of the popup only when no separator text is available (IDEA-82543)
This commit is contained in:
@@ -785,7 +785,7 @@ public class PopupFactoryImpl extends JBPopupFactory {
|
||||
else {
|
||||
icon = new IconWrapper(icon);
|
||||
}
|
||||
boolean prependSeparator = !myListModel.isEmpty() && myPrependWithSeparator;
|
||||
boolean prependSeparator = (!myListModel.isEmpty() || mySeparatorText != null) && myPrependWithSeparator;
|
||||
assert text != null : action + " has no presentation";
|
||||
myListModel.add(new ActionItem(action, text, presentation.isEnabled(), icon, prependSeparator, mySeparatorText));
|
||||
myPrependWithSeparator = false;
|
||||
|
||||
Reference in New Issue
Block a user