Browse Source

REPORT-81973 搜索模板时没预加载完就开始搜索,没构建出模板树

newui
John.Ying 2 years ago
parent
commit
c0823d9ce8
  1. 3
      designer-base/src/main/java/com/fr/design/gui/itree/filetree/TemplateFileTree.java

3
designer-base/src/main/java/com/fr/design/gui/itree/filetree/TemplateFileTree.java

@ -306,8 +306,7 @@ public class TemplateFileTree extends EnvFileTree {
if (interceptRefresh(root)) {
return;
}
if (!TemplateTreeSearchManager.getInstance().isRefreshing()) {
if (!TemplateTreeSearchManager.getInstance().isRefreshing() || TemplateTreeSearchManager.getInstance().allFileNodes().size() != allTreeNode.size()) {
currentTreeMode.clear();
calculateNode.clear();
allTreeNode = TemplateTreeSearchManager.getInstance().allFileNodes().entrySet().stream().collect(

Loading…
Cancel
Save