Addon Manager: Improve wiki page data extraction

This commit is contained in:
Chris Hennes
2021-12-31 17:46:13 -06:00
parent 81c1187f58
commit b370d3dae4
3 changed files with 42 additions and 7 deletions

View File

@@ -361,6 +361,21 @@ class PackageListItemDelegate(QStyledItemDelegate):
elif repo.macro and repo.macro.parsed:
self.widget.ui.labelDescription.setText(repo.macro.comment)
self.widget.ui.labelVersion.setText(repo.macro.version)
if repo.macro.date:
if repo.macro.version:
new_label = (
"v"
+ repo.macro.version
+ ", "
+ translate("AddonsInstaller", "updated")
+ " "
+ repo.macro.date
)
else:
new_label = (
translate("AddonsInstaller", "Updated") + " " + repo.macro.date
)
self.widget.ui.labelVersion.setText(new_label)
if self.displayStyle == ListDisplayStyle.EXPANDED:
if repo.macro.author:
caption = translate("AddonsInstaller", "Author")