git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e98fa5
)
JAL-3253-applet Preferences / StructureViewer fix
author
BobHanson
<hansonr@stolaf.edu>
Tue, 2 Jun 2020 17:04:13 +0000
(12:04 -0500)
committer
BobHanson
<hansonr@stolaf.edu>
Tue, 2 Jun 2020 17:04:13 +0000
(12:04 -0500)
src/jalview/gui/Preferences.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/Preferences.java
b/src/jalview/gui/Preferences.java
index
1f77f75
..
38bc74c
100755
(executable)
--- 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;