mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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:
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) {
|
||||
|
||||
Reference in New Issue
Block a user