diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-10-19 18:14:27 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-10-19 18:19:03 +0300 |
commit | b2d495c2de61b7a32be8cdb81e4a65b60f6ff8c7 (patch) | |
tree | 2db30d784c8bbc8dd76152e6428451d8c916a947 /release/scripts/startup/bl_ui | |
parent | be52fd0d0fb0add1724600f162cde1219f3bdb7e (diff) |
UI: move reports / job back to status bar, but make it more visible with color.
Diffstat (limited to 'release/scripts/startup/bl_ui')
-rw-r--r-- | release/scripts/startup/bl_ui/space_statusbar.py | 19 | ||||
-rw-r--r-- | release/scripts/startup/bl_ui/space_topbar.py | 17 |
2 files changed, 19 insertions, 17 deletions
diff --git a/release/scripts/startup/bl_ui/space_statusbar.py b/release/scripts/startup/bl_ui/space_statusbar.py index 3f4e8879645..2cc5bd94bd7 100644 --- a/release/scripts/startup/bl_ui/space_statusbar.py +++ b/release/scripts/startup/bl_ui/space_statusbar.py @@ -32,6 +32,25 @@ class STATUSBAR_HT_header(Header): layout.separator_spacer() + # messages + layout.template_reports_banner() + + row = layout.row(align=True) + if bpy.app.autoexec_fail is True and bpy.app.autoexec_fail_quiet is False: + row.label(text="Auto-run disabled", icon='ERROR') + if bpy.data.is_saved: + props = row.operator("wm.revert_mainfile", icon='SCREEN_BACK', text="Reload Trusted") + props.use_scripts = True + + row.operator("script.autoexec_warn_clear", text="Ignore") + + # include last so text doesn't push buttons out of the header + row.label(text=bpy.app.autoexec_fail_message) + + layout.template_running_jobs() + + layout.separator_spacer() + # stats scene = context.scene view_layer = context.view_layer diff --git a/release/scripts/startup/bl_ui/space_topbar.py b/release/scripts/startup/bl_ui/space_topbar.py index a2cf3def077..9fdc7143d11 100644 --- a/release/scripts/startup/bl_ui/space_topbar.py +++ b/release/scripts/startup/bl_ui/space_topbar.py @@ -66,23 +66,6 @@ class TOPBAR_HT_upper_bar(Header): window = context.window scene = window.scene - # messages - layout.template_reports_banner() - - row = layout.row(align=True) - if bpy.app.autoexec_fail is True and bpy.app.autoexec_fail_quiet is False: - row.label(text="Auto-run disabled", icon='ERROR') - if bpy.data.is_saved: - props = row.operator("wm.revert_mainfile", icon='SCREEN_BACK', text="Reload Trusted") - props.use_scripts = True - - row.operator("script.autoexec_warn_clear", text="Ignore") - - # include last so text doesn't push buttons out of the header - row.label(text=bpy.app.autoexec_fail_message) - - 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") |