Fix: remove leading space in window title

Remove leading space in window title for saved files.

Pull Request: https://projects.blender.org/blender/blender/pulls/114704
This commit is contained in:
RedMser
2023-11-24 18:57:09 +01:00
committed by Harley Acheson
parent ae25298774
commit bf97bc634f

View File

@@ -500,7 +500,10 @@ void wm_window_title(wmWindowManager *wm, wmWindow *win)
(GHOST_SetPath(handle, filepath) == GHOST_kFailure);
std::string str;
str += wm->file_saved ? " " : "* ";
if (!wm->file_saved) {
str += "* ";
}
if (has_filepath) {
const size_t filename_no_ext_len = BLI_path_extension_or_end(filename) - filename;
str.append(filename, filename_no_ext_len);