From eaa99968fb32a8a13058072cc2ee9a764c87f91d Mon Sep 17 00:00:00 2001 From: Marcus Nilsson Date: Sun, 15 Aug 2021 18:19:30 +0200 Subject: [PATCH] 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. --- Userland/Applications/PixelPaint/ImageEditor.cpp | 2 -- 1 file changed, 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)