mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[build tool window] more straightforward impl of manual auto-expand CPP-15162
This commit is contained in:
@@ -429,12 +429,10 @@ public class BuildTreeConsoleView implements ConsoleView, DataProvider, BuildCon
|
||||
final Update update = new Update(node) {
|
||||
@Override
|
||||
public void run() {
|
||||
myTreeModel.invalidate(node, true).then(path -> {
|
||||
if (node.isAutoExpandNode() && node.getChildCount() > 0) {
|
||||
myTreeModel.expand(node, myTree, p -> {});
|
||||
}
|
||||
return path;
|
||||
});
|
||||
if (node.isAutoExpandNode() && node.getChildCount() > 0) {
|
||||
myTreeModel.expand(node, myTree, p -> {});
|
||||
}
|
||||
myTreeModel.invalidate(node, true);
|
||||
}
|
||||
};
|
||||
myLaterInvocator.queue(update);
|
||||
|
||||
Reference in New Issue
Block a user