From fd42752257596579350f511b0c8e0316d96ef086 Mon Sep 17 00:00:00 2001 From: David Benn Date: Tue, 22 Oct 2024 23:29:55 +1030 Subject: [PATCH] #452: added guards in select/deselect all button listener methods to determine whether to modify visibility --- .../vstar/ui/dialog/series/SeriesVisibilityPane.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/org/aavso/tools/vstar/ui/dialog/series/SeriesVisibilityPane.java b/src/org/aavso/tools/vstar/ui/dialog/series/SeriesVisibilityPane.java index e4688e31e..398554b01 100644 --- a/src/org/aavso/tools/vstar/ui/dialog/series/SeriesVisibilityPane.java +++ b/src/org/aavso/tools/vstar/ui/dialog/series/SeriesVisibilityPane.java @@ -462,11 +462,15 @@ public void actionPerformed(ActionEvent e) { for (JCheckBox checkBox : checkBoxes) { if (checkBox.isEnabled()) { checkBox.setSelected(target); - updateSeriesVisibilityMap(checkBox); + if (modifyVisibility) { + updateSeriesVisibilityMap(checkBox); + } } } - seriesVisibilityChange(getVisibilityDeltaMap()); + if (modifyVisibility) { + seriesVisibilityChange(getVisibilityDeltaMap()); + } } }; }