Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Ward <matt.ward@microsoft.com>2019-11-25 18:05:17 +0300
committerMatt Ward <matt.ward@microsoft.com>2019-11-25 18:05:17 +0300
commit1b7ba51932a76405a9b9f7cd28da4af9f6b96c29 (patch)
tree3ba3def1b19cec7e33d53a1c6bb02e652ff4e5fa /main/src/addins/MonoDevelop.PackageManagement
parenta467dbba5ea6c2197b8b7c5ccb67b0c40b9f5290 (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/MonoDevelop.PackageManagement')
-rw-r--r--main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.Gui/ManagePackagesDialog.cs14
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,