From e6f20f27d80ebe9d95b5d3c075931d90d63e62f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?kleines=20Filmr=C3=B6llchen?= Date: Wed, 17 Aug 2022 12:15:18 +0200 Subject: [PATCH] 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. --- Userland/Applications/PixelPaint/ImageEditor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Userland/Applications/PixelPaint/ImageEditor.cpp b/Userland/Applications/PixelPaint/ImageEditor.cpp index 81e3ad73e0..62cd342b49 100644 --- a/Userland/Applications/PixelPaint/ImageEditor.cpp +++ b/Userland/Applications/PixelPaint/ImageEditor.cpp @@ -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(); }