mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
PixelPaint: Set the image title when creating a new image
This commit is contained in:
parent
25a292f534
commit
a49a15cabf
Notes:
sideshowbarker
2024-07-18 12:10:24 +09:00
Author: https://github.com/aatosmajava
Commit: a49a15cabf
Pull-request: https://github.com/SerenityOS/serenity/pull/8097
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