Don't clear report when there was an error getting available Blender versions

This commit is contained in:
Sybren A. Stüvel 2016-06-28 14:29:40 +02:00
parent 78d567793e
commit e484d6496c

View File

@ -473,6 +473,10 @@ class PILLAR_OT_sync(pillar.PillarOperatorMixin,
bss = bpy.context.window_manager.blender_sync_status bss = bpy.context.window_manager.blender_sync_status
bss.available_blender_versions = versions bss.available_blender_versions = versions
if versions:
# There are versions to sync, so we can remove the status message.
# However, if there aren't any, the status message shows why, and
# shouldn't be erased.
self.bss_report({'INFO'}, '') self.bss_report({'INFO'}, '')
async def download_settings_file(self, fname: str, temp_dir: str): async def download_settings_file(self, fname: str, temp_dir: str):