From: gmungoc Date: Thu, 6 Feb 2020 15:21:30 +0000 (+0000) Subject: JAL-3509 better placement of call to notifyFeaturesChanged() X-Git-Tag: Release_2_11_1_1~27 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=124f64c901bc2000151a90c14541b490a6ac7f7e;p=jalview.git JAL-3509 better placement of call to notifyFeaturesChanged() --- diff --git a/src/jalview/ext/jmol/JalviewJmolBinding.java b/src/jalview/ext/jmol/JalviewJmolBinding.java index 7ba7aaf..e4ebde5 100644 --- a/src/jalview/ext/jmol/JalviewJmolBinding.java +++ b/src/jalview/ext/jmol/JalviewJmolBinding.java @@ -1199,8 +1199,6 @@ public abstract class JalviewJmolBinding extends AAStructureBindingModel FeatureSettingsModelI colours = new Pdb().getFeatureColourScheme(); ((AppJmol) getViewer()).getAlignmentPanel().av .applyFeaturesStyle(colours); - // ... and refresh again to ensure FeatureSettings is in synch! - fr.notifyFeaturesChanged(); } refreshGUI(); loadNotifiesHandled++; diff --git a/src/jalview/gui/AlignViewport.java b/src/jalview/gui/AlignViewport.java index 8e8f992..77d98ad 100644 --- a/src/jalview/gui/AlignViewport.java +++ b/src/jalview/gui/AlignViewport.java @@ -1095,6 +1095,8 @@ public class AlignViewport extends AlignmentViewport fr.orderFeatures(featureSettings); } fr.setTransparency(featureSettings.getTransparency()); + + fr.notifyFeaturesChanged(); } public String getViewName()