diff options
author | Marcus Nilsson <brainbomb@gmail.com> | 2021-08-15 18:19:30 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-16 16:54:34 +0200 |
commit | eaa99968fb32a8a13058072cc2ee9a764c87f91d (patch) | |
tree | 8244b1aa540087af3fd6e1b71552c37df579df6b /Userland/Applications/PixelPaint | |
parent | 8f36429cb5c0b40570e276a832ead7f1c09c59c4 (diff) | |
download | serenity-eaa99968fb32a8a13058072cc2ee9a764c87f91d.zip |
PixelPaint: Don't update ImageEditor in set_active_layer()
Setting the active layer does not cause anything to render differently.
Thus no update is needed and the call to layers_did_change() is
unnecessary.
Diffstat (limited to 'Userland/Applications/PixelPaint')
-rw-r--r-- | Userland/Applications/PixelPaint/ImageEditor.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Userland/Applications/PixelPaint/ImageEditor.cpp b/Userland/Applications/PixelPaint/ImageEditor.cpp index c578db0433..9f328f32ea 100644 --- a/Userland/Applications/PixelPaint/ImageEditor.cpp +++ b/Userland/Applications/PixelPaint/ImageEditor.cpp @@ -420,8 +420,6 @@ void ImageEditor::set_active_layer(Layer* layer) if (on_active_layer_change) on_active_layer_change({}); } - - layers_did_change(); } void ImageEditor::set_active_tool(Tool* tool) |