JAL-3509 better placement of call to notifyFeaturesChanged()
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 6 Feb 2020 15:21:30 +0000 (15:21 +0000)
committerJim Procter <j.procter@dundee.ac.uk>
Thu, 2 Sep 2021 13:09:04 +0000 (14:09 +0100)
src/jalview/ext/jmol/JalviewJmolBinding.java
src/jalview/gui/AlignViewport.java

index 8a7cd23..e607ef8 100644 (file)
@@ -755,8 +755,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++;
index 3c520e3..55abea6 100644 (file)
@@ -1098,6 +1098,8 @@ public class AlignViewport extends AlignmentViewport
       fr.orderFeatures(featureSettings);
     }
     fr.setTransparency(featureSettings.getTransparency());
+
+    fr.notifyFeaturesChanged();
   }
 
   public String getViewName()