Browse Source

REPORT-100959 【版本管理三期】删除模板目录树不会自动刷新

newui
Destiny.Lin 1 year ago
parent
commit
73a04ae480
  1. 4
      designer-base/src/main/java/com/fr/design/file/TemplateTreePane.java

4
designer-base/src/main/java/com/fr/design/file/TemplateTreePane.java

@ -378,8 +378,6 @@ public class TemplateTreePane extends JPanel implements FileOperations {
deleteNodes(deletableNodes);
}
}
Set<FileNode> deletedFileNode = deletableNodes.stream().map(treeNode -> (FileNode) treeNode.getUserObject()).collect(Collectors.toSet());
refreshAfterDelete(deletedFileNode);
}
private void refreshAfterDelete(Set<FileNode> deletedPaths) {
@ -426,6 +424,8 @@ public class TemplateTreePane extends JPanel implements FileOperations {
if (!get()) {
showErrorDialog();
}
Set<FileNode> deletedFileNode = nodes.stream().map(treeNode -> (FileNode) treeNode.getUserObject()).collect(Collectors.toSet());
refreshAfterDelete(deletedFileNode);
} catch (InterruptedException | ExecutionException e) {
throw new RuntimeException(e);
}

Loading…
Cancel
Save