aboutsummaryrefslogtreecommitdiffstats
path: root/epy.py
diff options
context:
space:
mode:
authorbenadha <benawiadha@gmail.com>2022-01-07 20:44:42 +0700
committerbenadha <benawiadha@gmail.com>2022-01-07 20:44:42 +0700
commita6004cbac697bc6d82edcf69d69f86750d3da606 (patch)
tree4023d21e93ba886d971799668dfaf6927613331f /epy.py
parent8c6d3c6d2b131d13455ec9833eab83f6ce942fd0 (diff)
downloadepy-a6004cbac697bc6d82edcf69d69f86750d3da606.tar.gz
Refactor attribute name
Diffstat (limited to 'epy.py')
-rwxr-xr-xepy.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/epy.py b/epy.py
index 1b2b0b2..feb24ba 100755
--- a/epy.py
+++ b/epy.py
@@ -2158,7 +2158,7 @@ class Reader:
self._tts_speaker: Optional[SpeakerBaseModel] = construct_speaker(
self.setting.PreferredTTSEngine, self.setting.TTSEngineArgs
)
- self._tts_support: bool = bool(self._tts_speaker)
+ self.tts_support: bool = bool(self._tts_speaker)
self.is_speaking: bool = False
# multi process & progress percentage
@@ -2859,7 +2859,7 @@ class Reader:
)
sys.exit()
- elif k in self.keymap.TTSToggle and self._tts_support:
+ elif k in self.keymap.TTSToggle and self.tts_support:
tospeak = ""
for i in text_structure.text_lines[
reading_state.row : reading_state.row + (rows * self.spread)