From: gmungoc Date: Tue, 26 Feb 2019 11:39:34 +0000 (+0000) Subject: JAL-3201 JAL-2386 don't pre-select 'apply to all groups' X-Git-Tag: Release_2_11_0~17^2~63^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=928017f8d5b3b70273b62ac83a9015fe2e785ff3;p=jalview.git JAL-3201 JAL-2386 don't pre-select 'apply to all groups' --- diff --git a/src/jalview/gui/SliderPanel.java b/src/jalview/gui/SliderPanel.java index 93a2457..f98139b 100755 --- a/src/jalview/gui/SliderPanel.java +++ b/src/jalview/gui/SliderPanel.java @@ -26,6 +26,7 @@ import jalview.jbgui.GSliderPanel; import jalview.renderer.ResidueShaderI; import jalview.util.MessageManager; +import java.awt.event.ActionEvent; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.beans.PropertyVetoException; @@ -396,7 +397,6 @@ public class SliderPanel extends GSliderPanel public void setAllGroupsCheckEnabled(boolean b) { allGroupsCheck.setEnabled(b); - allGroupsCheck.setSelected(ap.av.getColourAppliesToAllGroups()); } /** @@ -497,4 +497,13 @@ public class SliderPanel extends GSliderPanel } return title; } + + @Override + protected void allGroupsCheck_actionPerformed(ActionEvent e) + { + if (allGroupsCheck.isSelected()) + { + valueChanged(slider.getValue()); + } + } }