From 559683447a76180ede214c9b44f018b5c7539987 Mon Sep 17 00:00:00 2001 From: Ben Soares Date: Fri, 26 May 2023 12:07:26 +0100 Subject: [PATCH] JAL-629 dispose of non-displaying StructureChooser, removes zombie entry in Window menu --- src/jalview/gui/StructureChooser.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/jalview/gui/StructureChooser.java b/src/jalview/gui/StructureChooser.java index 1f39f3c..8423ed9 100644 --- a/src/jalview/gui/StructureChooser.java +++ b/src/jalview/gui/StructureChooser.java @@ -1767,8 +1767,7 @@ public class StructureChooser extends GStructureChooser { seq }, viewerType); } - if (headless) - sc.mainFrame.dispose(); + sc.mainFrame.dispose(); if (showRefAnnotations) showReferenceAnnotationsForSequence(ap.alignFrame, seq); -- 1.7.10.2