group layer previews are redrawn for every action in a script
Environment/Versions
- GIMP Version:2.99.14
- Package: flatpak
- Operating System: linux
Issue Description
Every action taken by a script is picked up by the group and layer preview rendering.
This could be one reason layer operations can take a long time to process.
In the attached video the layers within the group are subject to a visibility change.
You can see that in the layer preview these are applied one by one. In the image's display
they are applied all at once on the api call of (gimp-displays-flush).
I would hope that the same method for a display could be applied to preview rendering,
or the layer stack update method.