From ead01b555e8b1d6322cecdf7780222c73143a03a Mon Sep 17 00:00:00 2001 From: BobHanson Date: Tue, 2 Jun 2020 12:04:13 -0500 Subject: [PATCH] JAL-3253-applet 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 1f77f75..38bc74c 100755 --- a/src/jalview/gui/Preferences.java +++ b/src/jalview/gui/Preferences.java @@ -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; -- 1.7.10.2