[build tool window] more straightforward impl of manual auto-expand CPP-15162

This commit is contained in:
Nikita Skvortsov
2019-01-21 14:48:19 +03:00
parent 939a4f9497
commit 02747f41d9
@@ -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);