mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
#IDEA-CR-8144 allow to place group separator to the project types list top
This commit is contained in:
+6
-4
@@ -695,11 +695,13 @@ public class FlatWelcomeFrame extends JFrame implements IdeFrame {
|
||||
@Override
|
||||
public boolean hasSeparatorAboveOf(AnAction value) {
|
||||
int index = groups.indexOf(value);
|
||||
if (index < 1) return false;
|
||||
AnAction upper = groups.get(index - 1);
|
||||
if (getParentGroupName(upper) == null && getParentGroupName(value) != null) return true;
|
||||
final String parentGroupName = getParentGroupName(value);
|
||||
|
||||
return !Comparing.equal(getParentGroupName(upper), getParentGroupName(value));
|
||||
if (index < 1) return parentGroupName != null;
|
||||
AnAction upper = groups.get(index - 1);
|
||||
if (getParentGroupName(upper) == null && parentGroupName != null) return true;
|
||||
|
||||
return !Comparing.equal(getParentGroupName(upper), parentGroupName);
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user