[orca] Ensure we aren't caching the valuetext information



commit 8fa33044aabc1fec4c3eae322b017fc0e87930cf
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 5bf4e51c8..041f262a1 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -251,7 +251,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:
@@ -3658,7 +3658,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]