mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:57:35 +00:00
PixelPaint: Make images keep track of their path & title
The title is either "Untitled" (default), or the basename of the image after we've opened or saved it.
This commit is contained in:
parent
35456f035c
commit
abc40af809
5 changed files with 45 additions and 1 deletions
|
@ -395,6 +395,12 @@ void ImageEditor::image_did_change()
|
|||
update();
|
||||
}
|
||||
|
||||
void ImageEditor::image_did_change_title(String const& path)
|
||||
{
|
||||
if (on_image_title_change)
|
||||
on_image_title_change(path);
|
||||
}
|
||||
|
||||
void ImageEditor::image_select_layer(Layer* layer)
|
||||
{
|
||||
set_active_layer(layer);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue