JAL-2432 recover state for ‘display percentage’ checkbox
authorJim Procter <jprocter@issues.jalview.org>
Wed, 3 May 2017 08:47:26 +0000 (09:47 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Wed, 3 May 2017 08:47:26 +0000 (09:47 +0100)
src/jalview/appletgui/AnnotationColumnChooser.java
src/jalview/gui/AnnotationColumnChooser.java

index 0319b5c..b139fb8 100644 (file)
@@ -182,6 +182,7 @@ public class AnnotationColumnChooser extends AnnotationRowFilter implements
               .getThreshold().getSelectedIndex());
       actionOption = lastChooser
               .getActionOption();
+      percentThreshold.setState(lastChooser.percentThreshold.getState());
     }
 
     try
index bfe2f81..d0f1247 100644 (file)
@@ -125,6 +125,8 @@ public class AnnotationColumnChooser extends AnnotationRowFilter implements
               .getThreshold().getSelectedIndex());
       actionOption = lastChooser
               .getActionOption();
+      percentThreshold.setSelected(lastChooser.percentThreshold
+              .isSelected());
     }
 
     try