mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:17:35 +00:00
PixelPaint: Push layer creation onto the undo stack
Before this change, creating a layer, painting something on it and undoing would delete the layer as well as the paint on it.
This commit is contained in:
parent
8fa34b43ce
commit
1c52ca9693
1 changed files with 1 additions and 0 deletions
|
@ -567,6 +567,7 @@ void MainWidget::initialize_menubar(GUI::Window& window)
|
|||
}
|
||||
editor->image().add_layer(layer_or_error.release_value());
|
||||
editor->layers_did_change();
|
||||
editor->did_complete_action("New Layer"sv);
|
||||
m_layer_list_widget->select_top_layer();
|
||||
}
|
||||
}));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue