Address comments on 2e45bf637a
This commit is contained in:
@@ -255,7 +255,7 @@ class BPKG_OT_refresh(SubprocMixin, bpy.types.Operator):
|
||||
subproc.SubprocError: self._subproc_error,
|
||||
subproc.DownloadError: self._subproc_download_error,
|
||||
subproc.Success: self._subproc_success,
|
||||
subproc.Result: self._subproc_result,
|
||||
subproc.RepositoryResult: self._subproc_repository_result,
|
||||
subproc.Aborted: self._subproc_aborted,
|
||||
}
|
||||
|
||||
@@ -283,9 +283,9 @@ class BPKG_OT_refresh(SubprocMixin, bpy.types.Operator):
|
||||
self.report({'INFO'}, 'Package list retrieved successfully')
|
||||
self.quit()
|
||||
|
||||
def _subproc_result(self, result: subproc.Result):
|
||||
def _subproc_repository_result(self, result: subproc.RepositoryResult):
|
||||
prefs = bpy.context.user_preferences.addons[__package__].preferences
|
||||
prefs['repo'] = result.data
|
||||
prefs['repo'] = result.repository
|
||||
self.report({'INFO'}, 'Package list retrieved successfully')
|
||||
self.quit()
|
||||
|
||||
|
Reference in New Issue
Block a user