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 (with N, the number of layers) were always the same and the
updated tooltip were in an unreachable position (at the end) in the
list.

Bug: #362
Signed-off-by: Séraphin Costa <[email protected]>
  • Loading branch information
scosta-obeo committed Apr 30, 2024
1 parent c365f1b commit 3af851a
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 3af851a

Please sign in to comment.