[Bf-blender-cvs] [24cb209915f] blender-projects-basics: Show hint in window title when editing file inside project
Julian Eisel
noreply at git.blender.org
Thu Sep 29 15:48:52 CEST 2022
Commit: 24cb209915fee6248563727e9265dd803ca69877
Author: Julian Eisel
Date: Thu Sep 29 15:46:32 2022 +0200
Branches: blender-projects-basics
https://developer.blender.org/rB24cb209915fee6248563727e9265dd803ca69877
Show hint in window title when editing file inside project
Currently only says "Has Project", but should be the project name once
that's supported.
===================================================================
M source/blender/windowmanager/intern/wm_window.c
===================================================================
diff --git a/source/blender/windowmanager/intern/wm_window.c b/source/blender/windowmanager/intern/wm_window.c
index a4f92da2774..7863cc2b224 100644
--- a/source/blender/windowmanager/intern/wm_window.c
+++ b/source/blender/windowmanager/intern/wm_window.c
@@ -456,10 +456,13 @@ void wm_window_title(wmWindowManager *wm, wmWindow *win)
const char *blendfile_path = BKE_main_blendfile_path_from_global();
if (blendfile_path[0] != '\0') {
char str[sizeof(((Main *)NULL)->filepath) + 24];
+ struct BlenderProject *project = CTX_wm_project();
+
BLI_snprintf(str,
sizeof(str),
- "Blender%s [%s%s]",
+ "Blender%s [%s%s%s]",
wm->file_saved ? "" : "*",
+ project ? IFACE_("Has Project - ") : "",
blendfile_path,
G_MAIN->recovered ? " (Recovered)" : "");
GHOST_SetTitle(win->ghostwin, str);
More information about the Bf-blender-cvs
mailing list