[orca/gnome-3-36] Ensure we aren't caching the valuetext information



commit 6f166d0545472aaf21a40c0cdaa8245a61264c9b
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Sun Apr 12 15:11:36 2020 -0400

    Ensure we aren't caching the valuetext information

 src/orca/script_utilities.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index 106e1274c..75ee2c529 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -241,7 +241,7 @@ class Utilities:
 
         return ancestor
 
-    def objectAttributes(self, obj):
+    def objectAttributes(self, obj, useCache=True):
         try:
             rv = dict([attr.split(':', 1) for attr in obj.getAttributes()])
         except:
@@ -3607,7 +3607,7 @@ class Utilities:
         Returns a string representing the value.
         """
 
-        attrs = self.objectAttributes(obj)
+        attrs = self.objectAttributes(obj, False)
         valuetext = attrs.get("valuetext")
         if valuetext:
             return valuetext


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]