diff --git a/src/main/java/org/openstreetmap/josm/plugins/mapwithai/gui/preferences/mapwithai/MapWithAIProvidersPanel.java b/src/main/java/org/openstreetmap/josm/plugins/mapwithai/gui/preferences/mapwithai/MapWithAIProvidersPanel.java index 7c2a6c9..9ccf234 100644 --- a/src/main/java/org/openstreetmap/josm/plugins/mapwithai/gui/preferences/mapwithai/MapWithAIProvidersPanel.java +++ b/src/main/java/org/openstreetmap/josm/plugins/mapwithai/gui/preferences/mapwithai/MapWithAIProvidersPanel.java @@ -734,7 +734,7 @@ public class MapWithAIProvidersPanel extends JPanel { }); } else { selected.stream().mapToInt(activeModel::getRowIndex).filter(i -> i >= 0).boxed() - .sorted(Collections.reverseOrder()).sorted().forEach(activeModel::removeRow); + .sorted(Collections.reverseOrder()).forEach(activeModel::removeRow); } updateEnabledState(); }