mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
switch getActions to existing visible actions only
Groups must not be queried outside an update session. Especially in RemDev. IJPL-566 Cleanup ActionToolbar API GitOrigin-RevId: 090e9611db62d410068727f4e0c53c8e76acda9e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
b6317fe474
commit
3e5f57202e
+1
-4
@@ -1506,10 +1506,8 @@ public class ActionToolbarImpl extends JPanel implements ActionToolbar, QuickAct
|
||||
@Override
|
||||
public @NotNull List<AnAction> getActions() {
|
||||
List<AnAction> result = new ArrayList<>();
|
||||
|
||||
List<AnAction> secondary = new ArrayList<>();
|
||||
AnAction[] kids = myActionGroup.getChildren(null);
|
||||
for (AnAction each : kids) {
|
||||
for (AnAction each : myVisibleActions) {
|
||||
if (myActionGroup.isPrimary(each)) {
|
||||
result.add(each);
|
||||
}
|
||||
@@ -1519,7 +1517,6 @@ public class ActionToolbarImpl extends JPanel implements ActionToolbar, QuickAct
|
||||
}
|
||||
result.add(new Separator());
|
||||
result.addAll(secondary);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user