UI: text keyword argument to label

Prepare for keyword only args
This commit is contained in:
Campbell Barton
2018-08-28 12:34:51 +10:00
parent 60b24f2415
commit e9fb2feb2e
39 changed files with 187 additions and 187 deletions

View File

@@ -37,7 +37,7 @@ class STATUSBAR_HT_header(Header):
row = layout.row(align=True)
if bpy.app.autoexec_fail is True and bpy.app.autoexec_fail_quiet is False:
row.label("Auto-run disabled", icon='ERROR')
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
@@ -45,7 +45,7 @@ class STATUSBAR_HT_header(Header):
row.operator("script.autoexec_warn_clear", text="Ignore")
# include last so text doesn't push buttons out of the header
row.label(bpy.app.autoexec_fail_message)
row.label(text=bpy.app.autoexec_fail_message)
layout.template_running_jobs()