Removed messages after switching mode for splash screen
This commit is contained in:
parent
fb3898c25f
commit
f6c8730062
@ -100,7 +100,6 @@ class OT_SplashDefault(bpy.types.Operator):
|
|||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
prefs = context.preferences.addons[base_package].preferences
|
prefs = context.preferences.addons[base_package].preferences
|
||||||
prefs.override_splash = False
|
prefs.override_splash = False
|
||||||
self.report({'INFO'}, f"Switch to Blender's default templates")
|
|
||||||
return {'FINISHED'}
|
return {'FINISHED'}
|
||||||
|
|
||||||
class OT_SplashCustom(bpy.types.Operator):
|
class OT_SplashCustom(bpy.types.Operator):
|
||||||
@ -111,6 +110,5 @@ class OT_SplashCustom(bpy.types.Operator):
|
|||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
prefs = context.preferences.addons[base_package].preferences
|
prefs = context.preferences.addons[base_package].preferences
|
||||||
prefs.override_splash = True
|
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'}
|
return {'FINISHED'}
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user