1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:07:35 +00:00

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.
This commit is contained in:
Marcus Nilsson 2021-08-15 18:19:30 +02:00 committed by Andreas Kling
parent 8f36429cb5
commit eaa99968fb

View file

@ -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)