diff options
author | Eike Ziller <eike.ziller@qt.io> | 2018-09-21 13:15:47 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2018-09-21 11:54:38 +0000 |
commit | 9ebe20ca27fbce2ca2934e40dfd1a7a21aaa6658 (patch) | |
tree | 03effab1e69b9213210ee63c7ad32c37418b42ab /docs | |
parent | 4d6487e753b8838f460769ff9758ac6c82a88a35 (diff) |
Avoid scanning extension directory over and over again
And get rid of separate management of a list of loaded extensions.
Instead save the name and state of an extension in a separate class.
It will probably get more information about the extension, like its
location. The extension manager UI now can also iterate over that list
once.
Change-Id: I4872e55d621837a7d476e69b919f06aeb491ff03
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/extensions.md | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/docs/extensions.md b/docs/extensions.md index ae5cb5c..709acff 100644 --- a/docs/extensions.md +++ b/docs/extensions.md @@ -21,9 +21,8 @@ from PythonExtension import PluginInstance as inst inst.extensionDir() # Returns a list with the names of all Python extensions -# If loaded only is supplied as True, only extensions that -# where loaded successfully are returned -inst.extensionList(loadedOnly = False) +# Each extension has properties 'name' and 'loaded' +inst.extensionList() # Returns the path of the custom location to # where missing dependencies should be pip installed |