Addon Manager: Improve cache behavior

Also includes a number of bug fixes.
This commit is contained in:
Chris Hennes
2021-12-05 18:46:21 -06:00
parent c6383e77f8
commit 52da213a3c
10 changed files with 157 additions and 196 deletions

View File

@@ -127,7 +127,7 @@ class AddonManagerRepo:
"branch":self.branch,
"repo_type":int(self.repo_type),
"description":self.description,
"cached_icon_filename":self.cached_icon_filename}
"cached_icon_filename":self.get_cached_icon_filename()}
def contains_workbench(self) -> bool:
""" Determine if this package contains (or is) a workbench """
@@ -166,6 +166,9 @@ class AddonManagerRepo:
if self.cached_icon_filename:
return self.cached_icon_filename
if not self.metadata:
return ""
real_icon = self.metadata.Icon
if not real_icon:
# If there is no icon set for the entire package, see if there are any workbenches, which