From f6f87c19fc17892b38eac802668f4f0bb489696c Mon Sep 17 00:00:00 2001 From: Nicolas QUINQUENEL Date: Mon, 4 Nov 2024 18:46:23 +0100 Subject: [PATCH] SLI-1668 SL icon in the toolwindow should align on New Code setting --- src/main/java/org/sonarlint/intellij/ui/CurrentFilePanel.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/sonarlint/intellij/ui/CurrentFilePanel.java b/src/main/java/org/sonarlint/intellij/ui/CurrentFilePanel.java index 0b71381f5..c994a7ed0 100644 --- a/src/main/java/org/sonarlint/intellij/ui/CurrentFilePanel.java +++ b/src/main/java/org/sonarlint/intellij/ui/CurrentFilePanel.java @@ -177,13 +177,14 @@ public void update(@Nullable VirtualFile file, @Nullable Collection i populateSubTree(tree, treeBuilder, Map.of(file, newIssues)); populateSubTree(oldTree, oldTreeBuilder, Map.of(file, oldIssues)); oldTree.setVisible(true); + updateIcon(file, newIssues); } else { populateSubTree(tree, treeBuilder, Map.of(file, this.currentIssues)); populateSubTree(oldTree, oldTreeBuilder, Collections.emptyMap()); oldTree.setVisible(false); + updateIcon(file, this.currentIssues); } expandTree(); - updateIcon(file, this.currentIssues); } private static void populateSubTree(Tree tree, IssueTreeModelBuilder treeBuilder, Map> issues) {