preferences/StructureViewer fix
authorBobHanson <hansonr@stolaf.edu>
Tue, 2 Jun 2020 21:07:50 +0000 (16:07 -0500)
committerBobHanson <hansonr@stolaf.edu>
Tue, 2 Jun 2020 21:07:50 +0000 (16:07 -0500)
src/jalview/gui/Preferences.java

index 61a4573..16e7fd4 100755 (executable)
@@ -828,8 +828,11 @@ public class Preferences extends GPreferences
             Boolean.toString(useRnaView.isSelected()));
     Cache.setPropertyNoSave(STRUCT_FROM_PDB,
             Boolean.toString(structFromPdb.isSelected()));
+    if (!Platform.isJS())
+    {
     Cache.setPropertyNoSave(STRUCTURE_DISPLAY,
             structViewer.getSelectedItem().toString());
+    }
     Cache.setPropertyNoSave(STRUCTURE_DIMENSIONS,
             structureDimensions.getText()); // BH 2019.07.12
     Cache.setOrRemove(CHIMERA_PATH, chimeraPath.getText());