Fix: Window title not properly updating on editor change

Update the window title on change of area even if the spacetype remains
the same. This way it catches subtype changes.

Pull Request: https://projects.blender.org/blender/blender/pulls/124304
This commit is contained in:
Jonas Holzman
2024-07-10 01:04:20 +02:00
committed by Harley Acheson
parent 0ccb126a14
commit 3b23dc4b4d

View File

@@ -2847,17 +2847,17 @@ void ED_area_newspace(bContext *C, ScrArea *area, int type, const bool skip_regi
/* tell WM to refresh, cursor types etc */
WM_event_add_mousemove(win);
if (BLI_listbase_is_single(&CTX_wm_screen(C)->areabase)) {
/* If there is only one area update the window title. */
WM_window_title(CTX_wm_manager(C), CTX_wm_window(C));
}
/* send space change notifier */
WM_event_add_notifier(C, NC_SPACE | ND_SPACE_CHANGED, area);
ED_area_tag_refresh(area);
}
if (BLI_listbase_is_single(&CTX_wm_screen(C)->areabase)) {
/* If there is only one area update the window title. */
WM_window_title(CTX_wm_manager(C), CTX_wm_window(C));
}
/* also redraw when re-used */
ED_area_tag_redraw(area);
}