Skip to content

Commit

Permalink
Fix dicomizer editor tools #546
Browse files Browse the repository at this point in the history
  • Loading branch information
nroduit committed Apr 25, 2024
1 parent 8b5580b commit 6881ce2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ private static void registerToolBar(Insertable instance, SeriesViewerUI ui) {

private static void registerTool(Insertable instance, SeriesViewerUI ui) {
List<DockableTool> tools = ui.getTools();
if (instance instanceof DockableTool tool && tools.contains(tool)) {
if (instance instanceof DockableTool tool && !tools.contains(tool)) {
tools.add(tool);
LOGGER.debug("Add Tool [{}] for {}", tool, ui.clazz.getName());
}
Expand Down

0 comments on commit 6881ce2

Please sign in to comment.