From be476c304c87aef688b535f8ff173cb305672cfe Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 3 Sep 2024 19:54:48 +0530 Subject: [PATCH] handle pause/resume events in viewer read aloud UI New backend generates these. --- src/pyj/read_book/read_aloud.pyj | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pyj/read_book/read_aloud.pyj b/src/pyj/read_book/read_aloud.pyj index e458106cea..fb7ee465a5 100644 --- a/src/pyj/read_book/read_aloud.pyj +++ b/src/pyj/read_book/read_aloud.pyj @@ -233,6 +233,10 @@ class ReadAloud: self.send_message('mark', num=data) elif which is 'begin': self.state = PLAYING + elif which is 'pause': + self.state = PAUSED + elif which is 'resume': + self.state = PLAYING elif which is 'end': self.state = STOPPED self.view.show_next_spine_item()