[BTW] expand 2 levels of output (workaround missing autoexpand in async tree)

This commit is contained in:
Nikita Skvortsov
2019-01-24 13:38:42 +03:00
parent 3b6f1c9c58
commit a4af51dffa
@@ -429,10 +429,8 @@ public class BuildTreeConsoleView implements ConsoleView, DataProvider, BuildCon
final Update update = new Update(node) {
@Override
public void run() {
if (node.isAutoExpandNode() && node.getChildCount() > 0) {
myTreeModel.expand(node, myTree, p -> {});
}
myTreeModel.invalidate(node, true);
myTreeModel.invalidate(node, true)
.onSuccess(p -> TreeUtil.expand(myTree, 2));
}
};
myLaterInvocator.queue(update);