forked from bartvdbraak/blender
UI: show messages and progress in topbar when status bar is collapsed.
This commit is contained in:
parent
c2bcde5c28
commit
10d7740e01
@ -64,8 +64,14 @@ class TOPBAR_HT_upper_bar(Header):
|
||||
layout = self.layout
|
||||
|
||||
window = context.window
|
||||
screen = context.screen
|
||||
scene = window.scene
|
||||
|
||||
# If statusbar is hidden, still show messages at the top
|
||||
if not screen.show_statusbar:
|
||||
layout.template_reports_banner()
|
||||
layout.template_running_jobs()
|
||||
|
||||
# Active workspace view-layer is retrieved through window, not through workspace.
|
||||
layout.template_ID(window, "scene", new="scene.new", unlink="scene.delete")
|
||||
|
||||
|
@ -180,6 +180,14 @@ static void topbar_header_listener(wmWindow *UNUSED(win), ScrArea *UNUSED(sa), A
|
||||
{
|
||||
/* context changes */
|
||||
switch (wmn->category) {
|
||||
case NC_WM:
|
||||
if (wmn->data == ND_JOB)
|
||||
ED_region_tag_redraw(ar);
|
||||
break;
|
||||
case NC_SPACE:
|
||||
if (wmn->data == ND_SPACE_INFO)
|
||||
ED_region_tag_redraw(ar);
|
||||
break;
|
||||
case NC_SCREEN:
|
||||
if (wmn->data == ND_LAYER)
|
||||
ED_region_tag_redraw(ar);
|
||||
|
Loading…
Reference in New Issue
Block a user