mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
handle pause/resume events in viewer read aloud UI
New backend generates these.
This commit is contained in:
parent
00ec5eb9fb
commit
be476c304c
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user