diff --git a/addon/globalPlugins/versionCollector/__init__.py b/addon/globalPlugins/versionCollector/__init__.py index 53361aa..0ce8e78 100644 --- a/addon/globalPlugins/versionCollector/__init__.py +++ b/addon/globalPlugins/versionCollector/__init__.py @@ -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.collectInitialApp) # Become aware of all NVDA add-ons postNvdaStartup.register(self.retrieveInstalledAddons) @@ -176,6 +176,11 @@ def onAppSwitch(self) -> None: self.currentApp = currentApp self.addToCacheOrUpdateDate(currentApp) + def collectInitialApp(self) -> None: + """Called as a registered extensionPoint, when NVDA first finishes loading.""" + wx.CallLater(1000, self.onAppSwitch) + postNvdaStartup.unregister(self.detectInitialApp) + def addToCacheOrUpdateDate(self, subject: _AppData) -> None: ind = getCacheIndexOf(subject) if ind < 0: diff --git a/buildVars.py b/buildVars.py index 7cea367..2d7da05 100644 --- a/buildVars.py +++ b/buildVars.py @@ -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.052", + "addon_version": "23.00.053", # Author(s) "addon_author": "Luke Davis ", # URL for the add-on documentation support