From 776be14378f8ece329d5e118432c98446ad887d9 Mon Sep 17 00:00:00 2001 From: BobHanson Date: Tue, 2 Jun 2020 16:07:50 -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 61a4573..16e7fd4 100755 --- a/src/jalview/gui/Preferences.java +++ b/src/jalview/gui/Preferences.java @@ -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()); -- 1.7.10.2