Skip to content

Commit

Permalink
params/SystemConfigurationEditorPanel: Fix to properly filter categor…
Browse files Browse the repository at this point in the history
…ies to send.
  • Loading branch information
paulosousadias committed Jan 29, 2025
1 parent e74e47c commit eef46a1
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -684,9 +684,11 @@ private Future<List<String>> askForCategories(String forWhat, Map<String, String
if (previousCheckCategoriesOnPanel != null && !previousCheckCategoriesOnPanel.containsKey(category)) {
cb.setSelected(false);
}
// if selected add to checkCategories
if (!chosenCategories.contains(category))
// if selected add to checkCategories, else remove it
if (cb.isSelected() && !chosenCategories.contains(category))
chosenCategories.add(category);
if (!cb.isSelected())
chosenCategories.remove(category);
checkBoxes.add(cb);
}
categoriesPanel.removeAll();
Expand Down

0 comments on commit eef46a1

Please sign in to comment.