Removed messages after switching mode for splash screen

This commit is contained in:
doc-code 2024-08-26 15:59:44 +02:00
parent fb3898c25f
commit f6c8730062

View File

@ -100,7 +100,6 @@ class OT_SplashDefault(bpy.types.Operator):
def execute(self, context):
prefs = context.preferences.addons[base_package].preferences
prefs.override_splash = False
self.report({'INFO'}, f"Switch to Blender's default templates")
return {'FINISHED'}
class OT_SplashCustom(bpy.types.Operator):
@ -111,6 +110,5 @@ class OT_SplashCustom(bpy.types.Operator):
def execute(self, context):
prefs = context.preferences.addons[base_package].preferences
prefs.override_splash = True
self.report({'INFO'}, f"Switch to Custom Templates{' (but currently you have no templates)' if len(prefs.projects) == 0 else ''}")
return {'FINISHED'}