JAL-3664 update colours to enable HMM colouring options after a paste or load of...
authorJim Procter <jprocter@issues.jalview.org>
Mon, 22 Jun 2020 11:17:59 +0000 (12:17 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Mon, 22 Jun 2020 11:17:59 +0000 (12:17 +0100)
src/jalview/gui/AlignFrame.java
src/jalview/io/FileLoader.java

index 1152a6e..7f8c9c1 100644 (file)
@@ -2480,6 +2480,8 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener,
           }
           buildSortByAnnotationScoresMenu();
         }
+        // TODO: this should be triggered by alignment.propertyChanged ?
+        buildColourMenu();
         viewport.firePropertyChange("alignment", null,
                 alignment.getSequences());
         if (alignPanels != null)
index b6701a3..7061938 100755 (executable)
@@ -454,6 +454,11 @@ public class FileLoader implements Runnable
               }
               viewport.getAlignPanel().adjustAnnotationHeight();
               viewport.updateSequenceIdColours();
+              // update HMM colour optionsĀ 
+              if (alignFrame != null)
+              {
+                alignFrame.buildColourMenu();
+              }
             }
           }
           else