Skip to content

Commit

Permalink
Added headings instead of table captions. Added add-on name in additi…
Browse files Browse the repository at this point in the history
…on to summary. Both beta user requests.
  • Loading branch information
Luke Davis authored and Luke Davis committed Jul 13, 2023
1 parent 28cd1e3 commit b388524
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions addon/globalPlugins/versionCollector/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@ def retrieveInstalledAddons(self) -> None:
"""
for addon in addonHandler.getAvailableAddons():
self.addToCacheOrUpdateDate(_AppData(
name=addon.manifest["summary"], version=addon.version, isAddon=True, is64bit=False,
name=f"{addon.manifest['summary']} ({addon.name})",
version=addon.version, isAddon=True, is64bit=False,
extra={"name": addon.name, "author": addon.manifest["author"], "enabled": addon.isEnabled}
))

Expand Down Expand Up @@ -274,13 +275,12 @@ def getStructuredAddonList(self, useHTML=False) -> str:
)

def showHTMLReport(self) -> None:
output = """ <table style="margin-left: auto; margin-right: auto;">
<caption>Application information:</caption>
output = """<h1>Detected Applications:</h1>\n<table style="margin-left: auto; margin-right: auto;">
<tr><th>NAME</th> <th>VERSION</th> <th>BITNESS</th> <tr>
"""
output += self.getStructuredAppList(True)
output += """</table><br><table style="margin-left: auto; margin-right: auto;">
<caption>List of NVDA add-ons:</caption>
output += """</table><br>
<h1>Detected NVDA Add-ons:</h1>\n<table style="margin-left: auto; margin-right: auto;">
<tr><th>NAME</th> <th>VERSION</th> <th>STATUS</th> <th>AUTHOR/PUBLISHER</th></tr>
"""
output += self.getStructuredAddonList(True)
Expand Down
2 changes: 1 addition & 1 deletion buildVars.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def _(arg):
"addon_description": _("""Keeps a record of all software names and versions used while running NVDA.
Provides a list that can be copied/exported for diagnostics and support."""),
# version
"addon_version": "23.00.02",
"addon_version": "23.00.021",
# Author(s)
"addon_author": "Luke Davis <XLTechie@newanswertech.com>",
# URL for the add-on documentation support
Expand Down

0 comments on commit b388524

Please sign in to comment.