From 58e6707ce48c89a5fd225667b0c38eb283215903 Mon Sep 17 00:00:00 2001 From: Andre Dietisheim Date: Thu, 21 Sep 2023 19:27:14 +0200 Subject: [PATCH] fix: dont refresh root if refreshing node Signed-off-by: Andre Dietisheim --- .../intellij/common/tree/MutableModelSynchronizer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/redhat/devtools/intellij/common/tree/MutableModelSynchronizer.java b/src/main/java/com/redhat/devtools/intellij/common/tree/MutableModelSynchronizer.java index d5b209e..f056c6b 100644 --- a/src/main/java/com/redhat/devtools/intellij/common/tree/MutableModelSynchronizer.java +++ b/src/main/java/com/redhat/devtools/intellij/common/tree/MutableModelSynchronizer.java @@ -45,8 +45,9 @@ private void invalidatePath(Supplier pathSupplier) { } if (path.getLastPathComponent() == treeModel.getRoot()) { invalidateRoot(); + } else { + treeModel.invalidate(path, true); } - treeModel.invalidate(path, true); }); }