minor changes to the script auto-execution based on Brecht's suggestions.
[blender.git] / release / scripts / startup / bl_ui / space_info.py
index 7487aaf420d4ff4540909f57b26518a3480ef492..5d476c01b082bb1a744fa6d8806d11a707beaef2 100644 (file)
@@ -67,14 +67,13 @@ class INFO_HT_header(Header):
 
         if bpy.app.autoexec_fail is True and bpy.app.autoexec_fail_quiet is False:
             layout.operator_context = 'EXEC_DEFAULT'
 
         if bpy.app.autoexec_fail is True and bpy.app.autoexec_fail_quiet is False:
             layout.operator_context = 'EXEC_DEFAULT'
-            row.label("Script failed to auto-run", icon='ERROR')
+            row.label("Auto-run disabled: %s" % bpy.app.autoexec_fail_message, icon='ERROR')
             if bpy.data.is_saved:
                 props = row.operator("wm.open_mainfile", icon='SCREEN_BACK', text="Reload Trusted")
                 props.filepath = bpy.data.filepath
                 props.use_scripts = True
 
             if bpy.data.is_saved:
                 props = row.operator("wm.open_mainfile", icon='SCREEN_BACK', text="Reload Trusted")
                 props.filepath = bpy.data.filepath
                 props.use_scripts = True
 
-            row.operator("script.autoexec_warn_clear", icon='CANCEL')
-            row.label("Skipping: (%s)" % bpy.app.autoexec_fail_message)
+            row.operator("script.autoexec_warn_clear", text="Ignore")
             return
 
         row.operator("wm.splash", text="", icon='BLENDER', emboss=False)
             return
 
         row.operator("wm.splash", text="", icon='BLENDER', emboss=False)