Skip to content

Commit

Permalink
Register a postNVDAStartup handler to call onAppSwitch, to correctly …
Browse files Browse the repository at this point in the history
…seed the pond.
  • Loading branch information
Luke Davis authored and Luke Davis committed Jul 14, 2023
1 parent 986f221 commit 5050401
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions addon/globalPlugins/versionCollector/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,15 @@ def __init__(self, *args, **kwargs):
self.currentApp: Optional[_AppData] = None
# Run our handler whenever the application changes
post_appSwitch.register(self.onAppSwitch)
# Seed the pond
postNvdaStartup.register(self.onAppSwitch())
# Become aware of all NVDA add-ons
postNvdaStartup.register(self.retrieveInstalledAddons)
# Seed the pond
self.onAppSwitch()

def terminate(self) -> None:
# Unregister the extensionPoints
post_appSwitch.unregister(self.onAppSwitch)
postNvdaStartup.unregister(self.onAppSwitch)
postNvdaStartup.unregister(self.retrieveInstalledAddons)

@script(
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.03",
"addon_version": "23.00.04",
# Author(s)
"addon_author": "Luke Davis <XLTechie@newanswertech.com>",
# URL for the add-on documentation support
Expand Down

0 comments on commit 5050401

Please sign in to comment.