Skip to content

Commit 7a23768

Browse files
committed
Revert unnecessary changes in intellij tree
1 parent 9cd084f commit 7a23768

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

  • PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-lib/src/main/java/com/microsoft/azure/toolkit/intellij/common/component

PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-lib/src/main/java/com/microsoft/azure/toolkit/intellij/common/component/Tree.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ private void refreshChildrenView() {
150150
@Override
151151
@AzureOperation(name = "common.load_children.node", params = "this.getLabel()", type = AzureOperation.Type.ACTION)
152152
public synchronized void refreshChildren(boolean... incremental) {
153-
Optional.ofNullable(this.inner).ifPresent(ignore -> this.setAllowsChildren(inner.hasChildren()));
154153
if (this.getAllowsChildren() && BooleanUtils.isNotFalse(this.loaded)) {
155154
final DefaultTreeModel model = (DefaultTreeModel) this.tree.getModel();
156155
if (incremental.length > 0 && incremental[0] && Objects.nonNull(model)) {
@@ -162,9 +161,6 @@ public synchronized void refreshChildren(boolean... incremental) {
162161
}
163162
this.loaded = null;
164163
this.loadChildren(incremental);
165-
} else if (!this.getAllowsChildren()) {
166-
this.removeAllChildren();
167-
this.refreshChildrenView();
168164
}
169165
}
170166

0 commit comments

Comments
 (0)