From: Ben Soares Date: Fri, 26 May 2023 11:07:26 +0000 (+0100) Subject: JAL-629 dispose of non-displaying StructureChooser, removes zombie entry in Window... X-Git-Tag: Release_2_11_4_0~292 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=559683447a76180ede214c9b44f018b5c7539987;p=jalview.git JAL-629 dispose of non-displaying StructureChooser, removes zombie entry in Window menu --- 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);