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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user