mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 01:59:31 +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:
parent
8f36429cb5
commit
eaa99968fb
Notes:
sideshowbarker
2024-07-18 03:52:46 +09:00
Author: https://github.com/metmo
Commit: eaa99968fb
Pull-request: https://github.com/SerenityOS/serenity/pull/10061
1 changed files with 0 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue