mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00:00
PaintBrush: Add "Delete layer" action to move tool context menu
This commit is contained in:
parent
b25c6ab884
commit
40a72883ff
Notes:
sideshowbarker
2024-07-19 06:39:41 +09:00
Author: https://github.com/awesomekling
Commit: 40a72883ff
3 changed files with 18 additions and 2 deletions
|
@ -104,4 +104,11 @@ void Image::move_layer_to_front(Layer& layer)
|
|||
m_layers.append(layer);
|
||||
}
|
||||
|
||||
void Image::remove_layer(Layer& layer)
|
||||
{
|
||||
NonnullRefPtr<Layer> protector(layer);
|
||||
auto index = index_of(layer);
|
||||
m_layers.remove(index);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue