Skip to content

Commit

Permalink
[362] Fix the bug in the refresh of the layer tooltip
Browse files Browse the repository at this point in the history
When the VSM is changed, the tooltip of all layers is updated. But the
tooltip list was never cleared between two menuShow. So the first n
tooltip text were always the same and the updated tooltips were in an
unreachable position (at the end) in the list.

Bug: #359
Signed-off-by: Séraphin Costa <[email protected]>
  • Loading branch information
scosta-obeo committed Apr 29, 2024
1 parent 205de3b commit 622df30
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2010, 2018 THALES GLOBAL SERVICES and others.
* Copyright (c) 2010, 2024 THALES GLOBAL SERVICES and others.
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
Expand Down Expand Up @@ -168,6 +168,7 @@ public void menuAboutToHide(IMenuManager manager) {

@Override
public void menuAboutToShow(IMenuManager manager) {
tooltips.clear();
menuShow(manager);
}
});
Expand Down

0 comments on commit 622df30

Please sign in to comment.