JAL-3253-applet Preferences / StructureViewer fix
authorBobHanson <hansonr@stolaf.edu>
Tue, 2 Jun 2020 17:04:13 +0000 (12:04 -0500)
committerBobHanson <hansonr@stolaf.edu>
Tue, 2 Jun 2020 17:04:13 +0000 (12:04 -0500)
src/jalview/gui/Preferences.java

index 1f77f75..38bc74c 100755 (executable)
@@ -458,8 +458,11 @@ public class Preferences extends GPreferences
     addSecondaryStructure.setEnabled(structSelected);
     addTempFactor.setSelected(Cache.getDefault(ADD_TEMPFACT_ANN, false));
     addTempFactor.setEnabled(structSelected);
+    if (!Platform.isJS())
+    {
     structViewer.setSelectedItem(
             Cache.getDefault(STRUCTURE_DISPLAY, ViewerType.JMOL.name()));
+    }
     Dimension d = Cache.getDefaultDim(STRUCTURE_DIMENSIONS,
             DEFAULT_STRUCTURE_DIMENSIONS);
     String s = d.width + "," + d.height;