diff options
author | Lennon Donaghy <donaghylennon@gmail.com> | 2022-06-29 16:33:01 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-06-30 11:54:29 +0200 |
commit | fbb8893513f060df27400ed6dab965e046960c36 (patch) | |
tree | 442563b5597c3da7ce5dc11199470cf689c4a992 | |
parent | 7919b4368e78929e0bf7682b277fa396e63b9124 (diff) | |
download | serenity-fbb8893513f060df27400ed6dab965e046960c36.zip |
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.
-rw-r--r-- | Userland/Applications/PixelPaint/ImageEditor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/PixelPaint/ImageEditor.cpp b/Userland/Applications/PixelPaint/ImageEditor.cpp index 684d1839b7..8a3ffb26d9 100644 --- a/Userland/Applications/PixelPaint/ImageEditor.cpp +++ b/Userland/Applications/PixelPaint/ImageEditor.cpp @@ -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) |