mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[vcs-log] sort root actions in paths menu
This commit is contained in:
+6
-1
@@ -97,7 +97,12 @@ class StructureFilterPopupComponent extends FilterPopupComponent<VcsLogFileFilte
|
||||
|
||||
List<AnAction> actions = new ArrayList<AnAction>();
|
||||
if (roots.size() <= 10) {
|
||||
for (VirtualFile root : roots) {
|
||||
for (VirtualFile root : ContainerUtil.sorted(roots, new Comparator<VirtualFile>() {
|
||||
@Override
|
||||
public int compare(VirtualFile o1, VirtualFile o2) {
|
||||
return o1.getName().compareTo(o2.getName());
|
||||
}
|
||||
})) {
|
||||
actions.add(new SelectVisibleRootAction(root));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user