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:
parent
fe88fd22fa
commit
e6f20f27d8
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue