[orca] Don't repeat document-loading message when multiple "busy" events received



commit 1005b2cb131f24768a591176b72eba073ab5fee1
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Tue Jul 28 14:33:35 2015 -0400

    Don't repeat document-loading message when multiple "busy" events received

 src/orca/scripts/web/script.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/web/script.py b/src/orca/scripts/web/script.py
index 5f8b05b..19ec5a9 100644
--- a/src/orca/scripts/web/script.py
+++ b/src/orca/scripts/web/script.py
@@ -1006,6 +1006,11 @@ class Script(default.Script):
             debug.println(debug.LEVEL_INFO, msg)
             return True
 
+        if event.detail1 and self._loadingDocumentContent:
+            msg = "WEB: Ignoring: Already loading document content"
+            debug.println(debug.LEVEL_INFO, msg)
+            return True
+
         self._loadingDocumentContent = event.detail1
 
         obj, offset = self.utilities.getCaretContext()


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