diff options
author | benadha <benawiadha@gmail.com> | 2022-01-07 20:44:42 +0700 |
---|---|---|
committer | benadha <benawiadha@gmail.com> | 2022-01-07 20:44:42 +0700 |
commit | a6004cbac697bc6d82edcf69d69f86750d3da606 (patch) | |
tree | 4023d21e93ba886d971799668dfaf6927613331f | |
parent | 8c6d3c6d2b131d13455ec9833eab83f6ce942fd0 (diff) | |
download | epy-a6004cbac697bc6d82edcf69d69f86750d3da606.tar.gz |
Refactor attribute name
-rwxr-xr-x | epy.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |