Skip to content

Commit

Permalink
Adding the minimum version and the latest tested version of NVDA for …
Browse files Browse the repository at this point in the history
…add-on (nvaccess#16053)

closes nvaccess#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.
  • Loading branch information
Nael-Sayegh authored Jan 23, 2024
1 parent e324e08 commit 5b4ecef
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
15 changes: 15 additions & 0 deletions source/gui/addonStoreGui/controls/details.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

from .actions import _MonoActionsContextMenu

from buildVersion import formatVersionForGUI

_fontFaceName = "Segoe UI"
_fontFaceName_semiBold = "Segoe UI Semibold"

Expand Down Expand Up @@ -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.
Expand Down
4 changes: 4 additions & 0 deletions user_docs/en/changes.t2t
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5b4ecef

Please sign in to comment.