From 7c39936619c69dab03c04cff893c9a92357ac7b9 Mon Sep 17 00:00:00 2001 From: BobHanson Date: Tue, 2 Jun 2020 16:04:47 -0500 Subject: [PATCH] Preferences/StructureViewer fix --- src/jalview/gui/Preferences.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/jalview/gui/Preferences.java b/src/jalview/gui/Preferences.java index 55345e0..dc274e9 100755 --- a/src/jalview/gui/Preferences.java +++ b/src/jalview/gui/Preferences.java @@ -807,8 +807,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.setOrRemove(CHIMERA_PATH, chimeraPath.getText()); Cache.setPropertyNoSave("MAP_WITH_SIFTS", Boolean.toString(siftsMapping.isSelected())); -- 1.7.10.2