mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +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
Notes:
sideshowbarker
2024-07-17 07:32:24 +09:00
Author: https://github.com/kleinesfilmroellchen
Commit: e6f20f27d8
Pull-request: https://github.com/SerenityOS/serenity/pull/14895
Reviewed-by: https://github.com/Hendiadyoin1
Reviewed-by: https://github.com/MacDue
Reviewed-by: https://github.com/linusg
Reviewed-by: https://github.com/trflynn89
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