From 5b4ecef4a4fe21078930b747b60c781c7983129a Mon Sep 17 00:00:00 2001 From: Nael Sayegh <61361779+Nael-Sayegh@users.noreply.github.com> Date: Wed, 24 Jan 2024 00:23:40 +0100 Subject: [PATCH] Adding the minimum version and the latest tested version of NVDA for add-on (#16053) closes #15776 Summary of the issue: Having the ability to see the minimum version and the latest tested version of NVDA for an extension in the addonStore. Description of user facing changes In the addonStore, the user will be able to see the minimum version and the latest tested version of NVDA in the details of an extension. Description of development approach Added in the source file\gui\addonStoreGui\controls\details.py in the refresh method, I added compatibility information under the installed version of the module. --- source/gui/addonStoreGui/controls/details.py | 15 +++++++++++++++ user_docs/en/changes.t2t | 4 ++++ 2 files changed, 19 insertions(+) diff --git a/source/gui/addonStoreGui/controls/details.py b/source/gui/addonStoreGui/controls/details.py index ae7609bf7d4..0c8d232851d 100644 --- a/source/gui/addonStoreGui/controls/details.py +++ b/source/gui/addonStoreGui/controls/details.py @@ -19,6 +19,8 @@ from .actions import _MonoActionsContextMenu +from buildVersion import formatVersionForGUI + _fontFaceName = "Segoe UI" _fontFaceName_semiBold = "Segoe UI Semibold" @@ -264,6 +266,19 @@ def _refresh(self): pgettext("addonStore", "Installed version:"), details._addonHandlerModel.version ) + + self._appendDetailsLabelValue( + # Translators: Label for an extra detail field for the selected add-on. In the add-on store dialog. + pgettext("addonStore", "Minimum NVDA version:"), + formatVersionForGUI(*details.minimumNVDAVersion) + ) + + self._appendDetailsLabelValue( + # Translators: Label for an extra detail field for the selected add-on. In the add-on store dialog. + pgettext("addonStore", "Last tested NVDA version:"), + formatVersionForGUI(*details.lastTestedNVDAVersion) + ) + if currentStatusKey not in AddonListField.availableAddonVersionName.hideStatuses: self._appendDetailsLabelValue( # Translators: Label for an extra detail field for the selected add-on. In the add-on store dialog. diff --git a/user_docs/en/changes.t2t b/user_docs/en/changes.t2t index 9ea24756e0e..07c39c64c37 100644 --- a/user_docs/en/changes.t2t +++ b/user_docs/en/changes.t2t @@ -12,6 +12,10 @@ What's New in NVDA == Changes == +- Add-on Store: + - The minimum and the last tested NVDA version for an add-on are now displayed in the "other details" area. (#15776, @Nael-Sayegh) + - +- == Bug Fixes == - Backspace now works correctly when using Nudi 6.1 with NVDA's "Handle keys from other applications" setting enabled. (#15822, @jcsteh)