1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:28:11 +00:00

PixelPaint: Invoke the modified_change callback when layers change

This propagates layer edits as well as undo stack operations to whoever
needs to perform updates when the image changes.
This commit is contained in:
kleines Filmröllchen 2022-08-17 12:15:18 +02:00 committed by Linus Groh
parent fe88fd22fa
commit e6f20f27d8

View file

@ -488,6 +488,8 @@ void ImageEditor::set_pixel_grid_visibility(bool show_pixel_grid)
void ImageEditor::layers_did_change()
{
if (on_modified_change)
on_modified_change(true);
update();
}