[orca] Be sure we respect the user's choice to temporarily turn live	regions off
- From: Joanmarie Diggs <joanied src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [orca] Be sure we respect the user's choice to temporarily turn live	regions off
 
- Date: Fri,  6 Sep 2019 16:17:09 +0000 (UTC)
 
commit 307db10625fefdc6fda3742604cc8cfb6f174c39
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Fri Sep 6 18:17:08 2019 +0200
    Be sure we respect the user's choice to temporarily turn live regions off
 src/orca/liveregions.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/src/orca/liveregions.py b/src/orca/liveregions.py
index b21b705b7..2dea3f497 100644
--- a/src/orca/liveregions.py
+++ b/src/orca/liveregions.py
@@ -236,7 +236,12 @@ class LiveRegionManager:
                 utts = message['content']
             else:
                 utts = message['labels'] + message['content']
-            self._script.presentMessage(utts)
+
+            if self.monitoring:
+                self._script.presentMessage(utts)
+            else:
+                msg = "INFO: Not presenting message because monitoring is off"
+                debug.println(debug.LEVEL_INFO, msg, True)
 
             # set the last live obj to be announced
             self.lastliveobj = obj
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]