From e484d6496ce4231dfee44ba28c1cd2a9fa231a65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 28 Jun 2016 14:29:40 +0200 Subject: [PATCH] Don't clear report when there was an error getting available Blender versions --- blender_cloud/settings_sync.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/blender_cloud/settings_sync.py b/blender_cloud/settings_sync.py index 05e4a07..16944d7 100644 --- a/blender_cloud/settings_sync.py +++ b/blender_cloud/settings_sync.py @@ -473,7 +473,11 @@ class PILLAR_OT_sync(pillar.PillarOperatorMixin, bss = bpy.context.window_manager.blender_sync_status bss.available_blender_versions = versions - self.bss_report({'INFO'}, '') + 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'}, '') async def download_settings_file(self, fname: str, temp_dir: str): config_dir = pathlib.Path(bpy.utils.user_resource('CONFIG'))