Skip to content

Commit

Permalink
Trying to fix crampped table layout.
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Davis authored and Luke Davis committed Jul 14, 2023
1 parent 5050401 commit e48a8fb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions addon/globalPlugins/versionCollector/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def __init__(self, *args, **kwargs):
# Run our handler whenever the application changes
post_appSwitch.register(self.onAppSwitch)
# Seed the pond
postNvdaStartup.register(self.onAppSwitch())
postNvdaStartup.register(self.onAppSwitch)
# Become aware of all NVDA add-ons
postNvdaStartup.register(self.retrieveInstalledAddons)

Expand All @@ -129,6 +129,7 @@ def terminate(self) -> None:
post_appSwitch.unregister(self.onAppSwitch)
postNvdaStartup.unregister(self.onAppSwitch)
postNvdaStartup.unregister(self.retrieveInstalledAddons)
super().terminate()

@script(
gesture="kb:NVDA+control+shift+v",
Expand Down Expand Up @@ -276,8 +277,13 @@ def getStructuredAddonList(self, useHTML=False) -> str:
)

def showHTMLReport(self) -> None:
output = """<style>
tr td:first-child {padding-left:0px;}
td {padding:10px 0px 10px 50px;}
</style>
"""
# Translators: Suggestions on how a user can interact with the Version Report.
output = "<p>" + _("Use shift+arrow keys to select, ctrl+c to copy to clipboard.")
output += "<p>" + _("Use shift+arrow keys to select, ctrl+c to copy to clipboard.")
output += """</p>\n<br><h1>Detected Applications:</h1>\n<table style="margin-left: auto; margin-right: auto;">
<tr><th>NAME</th> <th>VERSION</th> <th>BITNESS</th> <tr>
"""
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.04",
"addon_version": "23.00.05",
# Author(s)
"addon_author": "Luke Davis <XLTechie@newanswertech.com>",
# URL for the add-on documentation support
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This is an [NVDA][1] add-on, designed to collect the name and version numbers of any software the user runs.
This process is completely passive to the user.
As long as the add-on is enabled, it will collect (remember) the name, version, and bitness (64 or 32) for every piece of software on your system which receives NVDA focus.
As long as Version Collector is enabled, it will collect (remember) the name, version, and bitness (64 or 32) for every piece of software on your system which receives NVDA focus.
A list of all installed NVDA add-ons is also collected at startup.

Currently, each time you restart NVDA, the collected data is lost.
Expand Down

0 comments on commit e48a8fb

Please sign in to comment.