A tiny bug fix in prompt checker.
This commit is contained in:
@@ -158,6 +158,16 @@ class command:
|
|||||||
|
|
||||||
def _restore_speech(self):
|
def _restore_speech(self):
|
||||||
"""Helper method to restore speech when prompt is detected"""
|
"""Helper method to restore speech when prompt is detected"""
|
||||||
|
# If speech is already enabled, just clear flags to avoid unnecessary
|
||||||
|
# interrupts on prompt return
|
||||||
|
if self.env["runtime"]["SettingsManager"].get_setting_as_bool(
|
||||||
|
"speech", "enabled"
|
||||||
|
):
|
||||||
|
self.env["commandBuffer"]["silenceUntilPrompt"] = False
|
||||||
|
if "enableSpeechOnKeypress" in self.env["commandBuffer"]:
|
||||||
|
self.env["commandBuffer"]["enableSpeechOnKeypress"] = False
|
||||||
|
return
|
||||||
|
|
||||||
# Disable silence mode
|
# Disable silence mode
|
||||||
self.env["commandBuffer"]["silenceUntilPrompt"] = False
|
self.env["commandBuffer"]["silenceUntilPrompt"] = False
|
||||||
# Also disable the keypress-based speech restoration since we're
|
# Also disable the keypress-based speech restoration since we're
|
||||||
|
|||||||
@@ -4,5 +4,5 @@
|
|||||||
# Fenrir TTY screen reader
|
# Fenrir TTY screen reader
|
||||||
# By Chrys, Storm Dragon, and contributors.
|
# By Chrys, Storm Dragon, and contributors.
|
||||||
|
|
||||||
version = "2025.12.30"
|
version = "2026.01.04"
|
||||||
code_name = "testing"
|
code_name = "testing"
|
||||||
|
|||||||
Reference in New Issue
Block a user