mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:47:34 +00:00
PixelPaint: Use image title as default filename for "save as"
When creating a new image, a title can be entered. This title was not used when saving the file however, so naming it was pointless, as the title used would be whatever was entered during the first save. This commit makes it so that the default text in the "save as" dialogue is whatever was entered previously when the image was created.
This commit is contained in:
parent
307d113594
commit
7919b4368e
1 changed files with 1 additions and 1 deletions
|
@ -597,7 +597,7 @@ void ImageEditor::save_project()
|
|||
|
||||
void ImageEditor::save_project_as()
|
||||
{
|
||||
auto response = FileSystemAccessClient::Client::the().try_save_file(window(), "untitled", "pp");
|
||||
auto response = FileSystemAccessClient::Client::the().try_save_file(window(), m_title, "pp");
|
||||
if (response.is_error())
|
||||
return;
|
||||
auto file = response.value();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue