[build tool window] restore auto-expand behaviour manually CPP-15162

This commit is contained in:
Nikita Skvortsov
2019-01-18 15:56:05 +03:00
parent 621f0102cf
commit 8fee70ea26
@@ -429,7 +429,12 @@ public class BuildTreeConsoleView implements ConsoleView, DataProvider, BuildCon
final Update update = new Update(node) {
@Override
public void run() {
myTreeModel.invalidate(node, true);
myTreeModel.invalidate(node, true).then(path -> {
if (node.isAutoExpandNode() && node.getChildCount() > 0) {
myTreeModel.expand(node, myTree, p -> {});
}
return path;
});
}
};
myLaterInvocator.queue(update);