MP-7120 Limit the number of images on the plugin description page

Don't load more than 10 images per plugin. Some plugins have 50+ images which take 1Gb in heap and might cause OOM.

GitOrigin-RevId: 57e98c83028171f9bc53a86847de7d146ec3e059
This commit is contained in:
Maxim.Kolmakov
2024-11-26 15:19:30 +00:00
committed by intellij-monorepo-bot
parent 8aeea054e2
commit 72c0839880
@@ -205,6 +205,7 @@ public final class PluginImagesComponent extends JPanel {
}
else {
images.add(image);
if (images.size() >= 10) break;
}
}
catch (IOException e) {