diff options
author | Matt Ward <matt.ward@microsoft.com> | 2019-11-25 18:05:17 +0300 |
---|---|---|
committer | monojenkins <jo.shields+jenkins@xamarin.com> | 2019-11-26 14:26:36 +0300 |
commit | 156c704703e056183d26d30ac304f64aa381f5b4 (patch) | |
tree | bfb74eb2dced2b513a3109a5899929e3fda163e6 /main/src/addins | |
parent | 75eb25315f29c69699fe45b3162373dbfc0a6865 (diff) |
[NuGet] VoiceOver reads version on Installed tab
Previously the download count was read by Voice Over when on the
Installed tab but the version installed was displayed. Now the version
is read by Voice Over. Download count is read by Voice Over on the
Browse tab as before.
Diffstat (limited to 'main/src/addins')
-rw-r--r-- | main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.Gui/ManagePackagesDialog.cs | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.Gui/ManagePackagesDialog.cs b/main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.Gui/ManagePackagesDialog.cs index 86a26fc077..7e9e87966d 100644 --- a/main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.Gui/ManagePackagesDialog.cs +++ b/main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.Gui/ManagePackagesDialog.cs @@ -619,8 +619,18 @@ namespace MonoDevelop.PackageManagement { int row = packageStore.AddRow (); var accessibleDescription = StringBuilderCache.Allocate (packageViewModel.Id); - if (packageViewModel.HasDownloadCount) - accessibleDescription.Append (", ").Append (packageViewModel.GetDownloadCountDisplayText ()).Append (" ").Append (GettextCatalog.GetString ("Downloads")); + if (packageViewModel.HasDownloadCount) { + accessibleDescription.Append (", "); + if (packageViewModel.ShowVersionInsteadOfDownloadCount) { + accessibleDescription.Append (GettextCatalog.GetString ("Version")); + accessibleDescription.Append (" "); + accessibleDescription.Append (packageViewModel.GetDownloadCountOrVersionDisplayText ()); + } else { + accessibleDescription.Append (packageViewModel.GetDownloadCountOrVersionDisplayText ()); + accessibleDescription.Append (" "); + accessibleDescription.Append (GettextCatalog.GetString ("Downloads")); + } + } if (!string.IsNullOrEmpty (packageViewModel.Summary)) accessibleDescription.Append (", ").Append (packageViewModel.Summary); packageStore.SetValues (row, |