From 7ca41f52933c7520a5871afd8d6f58f0d01c0bbe Mon Sep 17 00:00:00 2001 From: James Procter Date: Mon, 1 May 2023 17:09:15 +0100 Subject: [PATCH] JAL-4177 disable add/new view when an import is started. --- src/jalview/gui/StructureChooser.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/jalview/gui/StructureChooser.java b/src/jalview/gui/StructureChooser.java index 03f9269..4e5378e 100644 --- a/src/jalview/gui/StructureChooser.java +++ b/src/jalview/gui/StructureChooser.java @@ -1070,11 +1070,13 @@ public class StructureChooser extends GStructureChooser { pdbFileString = MessageManager.getString("label.none"); pdbFileTooltip = MessageManager.getString("label.nothing_selected"); + setPdbOptionsEnabled(false); } } else { btn_pdbFromFile.setEnabled(false); + setPdbOptionsEnabled(false); // lbl_fromFileStatus.setIcon(errorImage); pdbFileString = MessageManager.getString("label.none"); pdbFileTooltip = MessageManager.getString("label.nothing_selected"); @@ -1199,7 +1201,8 @@ public class StructureChooser extends GStructureChooser final StructureSelectionManager ssm = ap.getStructureSelectionManager(); final int preferredHeight = pnl_filter.getHeight(); - + btn_add.setEnabled(false); + btn_newView.setEnabled(false); Runnable viewStruc = new Runnable() { @Override -- 1.7.10.2