mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
PixelPaint: Omit file extension in tab/editor titles
This commit removes the file extension in the presented title of images, and fixes an issue with the previous commit wherein "save as" on an image would always append ".pp" as an extension, even when the filename already included this extension.
This commit is contained in:
parent
7919b4368e
commit
fbb8893513
Notes:
sideshowbarker
2024-07-17 09:50:44 +09:00
Author: https://github.com/donaghylennon
Commit: fbb8893513
Pull-request: https://github.com/SerenityOS/serenity/pull/14430
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ void ImageEditor::set_title(String title)
|
|||
void ImageEditor::set_path(String path)
|
||||
{
|
||||
m_path = move(path);
|
||||
set_title(LexicalPath::basename(m_path));
|
||||
set_title(LexicalPath::title(m_path));
|
||||
}
|
||||
|
||||
void ImageEditor::paint_event(GUI::PaintEvent& event)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue