1
Fork 0
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:
Lennon Donaghy 2022-06-29 16:26:02 +01:00 committed by Andreas Kling
parent 307d113594
commit 7919b4368e

View file

@ -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();