Made AsyncModalOperatorMixin.invoke() start self.async_execute(context).

This was already common practice in all subclasses, and has now been
moved into the mixin.
This commit is contained in:
2016-08-26 17:06:32 +02:00
parent f41ea8c5a3
commit 143456ae1d
4 changed files with 14 additions and 21 deletions

View File

@@ -234,11 +234,7 @@ class PILLAR_OT_sync(pillar.PillarOperatorMixin,
self.bss_report({'ERROR'}, 'No Blender version to sync for was given.')
return {'CANCELLED'}
async_loop.AsyncModalOperatorMixin.invoke(self, context, event)
self.log.info('Starting synchronisation')
self._new_async_task(self.async_execute(context))
return {'RUNNING_MODAL'}
return async_loop.AsyncModalOperatorMixin.invoke(self, context, event)
def action_select(self, context):
"""Allows selection of the Blender version to use.