[orca] Ensure synthesizer is changed when switching profiles via command



commit c02fad0056713e165e2b64c8806c73ec8a6d99f9
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Mon Jun 6 14:57:48 2016 -0400

    Ensure synthesizer is changed when switching profiles via command

 src/orca/scripts/default.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/default.py b/src/orca/scripts/default.py
index 50d861a..bb9266c 100644
--- a/src/orca/scripts/default.py
+++ b/src/orca/scripts/default.py
@@ -1893,7 +1893,9 @@ class Script(script.Script):
         # self.voices directly and instead get the voices from the Settings
         # Manager. But that's too big a change too close to code freeze. So
         # for now we'll hack.
+        speech.shutdown()
         self.voices = _settingsManager.getSetting('voices')
+        speech.init()
 
         # TODO: This is another "too close to code freeze" hack to cause the
         # command names to be presented in the correct language.


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