From ad94fe2f24935ae35a6531d52b706cea889196d2 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Mon, 29 Jun 2020 10:25:06 +0100 Subject: [PATCH] JAL-3400 prevent duplications in View Chain menu --- src/jalview/gui/StructureViewerBase.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/jalview/gui/StructureViewerBase.java b/src/jalview/gui/StructureViewerBase.java index 77ba38d..1bb651a 100644 --- a/src/jalview/gui/StructureViewerBase.java +++ b/src/jalview/gui/StructureViewerBase.java @@ -1053,7 +1053,10 @@ public abstract class StructureViewerBase extends GStructureViewer repaint(); return; } - setChainMenuItems(binding.getChainNames()); + synchronized (chainMenu) + { + setChainMenuItems(binding.getChainNames()); + } this.setTitle(binding.getViewerTitle(getViewerName(), true)); -- 1.7.10.2