[orca] Don't add pause between status bar children whose speech ends with pause
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Don't add pause between status bar children whose speech ends with pause
- Date: Sat, 9 May 2020 17:26:53 +0000 (UTC)
commit 2b4d7870cd442a7d5a48aeff3c40592daffca6a2
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Sat May 9 13:24:49 2020 -0400
Don't add pause between status bar children whose speech ends with pause
_generateStatusBar() calls generate() for each child. Depending on the
role of that child, there may already be a pause added.
src/orca/speech_generator.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/orca/speech_generator.py b/src/orca/speech_generator.py
index 9b52d8a71..1c9ae18e9 100644
--- a/src/orca/speech_generator.py
+++ b/src/orca/speech_generator.py
@@ -2332,7 +2332,8 @@ class SpeechGenerator(generator.Generator):
childResult = self.generate(child, includeContext=False)
if childResult:
result.extend(childResult)
- result.extend(self._generatePause(child, **args))
+ if not isinstance(childResult[-1], Pause):
+ result.extend(self._generatePause(child, **args))
return result
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]