mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:27:35 +00:00
PixelPaint: Set the image title when creating a new image
This commit is contained in:
parent
25a292f534
commit
a49a15cabf
1 changed files with 2 additions and 0 deletions
|
@ -97,6 +97,8 @@ int main(int argc, char** argv)
|
|||
VERIFY(bg_layer);
|
||||
image->add_layer(*bg_layer);
|
||||
bg_layer->bitmap().fill(Color::White);
|
||||
auto image_title = dialog->image_name().trim_whitespace();
|
||||
image->set_title(image_title.is_empty() ? "Untitled" : image_title);
|
||||
|
||||
auto& image_editor = create_new_editor(*image);
|
||||
layer_list_widget.set_image(image);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue