Fix release notes not showing in splash without recent files

This commit is contained in:
Brecht Van Lommel 2019-07-10 14:42:08 +02:00
parent 526876a634
commit 7695fd9cff
1 changed files with 6 additions and 14 deletions

View File

@ -1785,20 +1785,12 @@ class WM_MT_splash(Menu):
col1.operator("wm.recover_last_session", icon='RECOVER_LAST')
col2 = split.column()
if found_recent:
col2.operator(
"wm.url_open", text="Release Notes", icon='URL',
).url = "https://www.blender.org/download/releases/%d-%d/" % bpy.app.version[:2]
col2.operator(
"wm.url_open", text="Development Fund", icon='URL'
).url = "https://fund.blender.org"
else:
col2.operator(
"wm.url_open", text="Development Fund", icon='URL'
).url = "https://fund.blender.org"
col2.operator(
"wm.url_open", text="Donate", icon='URL'
).url = "https://www.blender.org/foundation/donation-payment/"
col2.operator(
"wm.url_open", text="Release Notes", icon='URL',
).url = "https://www.blender.org/download/releases/%d-%d/" % bpy.app.version[:2]
col2.operator(
"wm.url_open", text="Development Fund", icon='URL'
).url = "https://fund.blender.org"
layout.separator()
layout.separator()