libsaria: Remove STOP event
I can double up on the pause callback in place of a stop callback.
This commit is contained in:
parent
7879c53fe7
commit
6c73a9c43a
|
@ -50,7 +50,7 @@ def stop():
|
|||
lock_audio()
|
||||
pipeline.stop()
|
||||
unlock_audio()
|
||||
#do_notify_paused()
|
||||
do_notify_paused()
|
||||
|
||||
def seek(amount):
|
||||
lock_audio()
|
||||
|
|
|
@ -81,7 +81,7 @@ def toggle_play():
|
|||
pause()
|
||||
|
||||
def stop():
|
||||
return call("STOP", audio.stop)
|
||||
audio.stop()
|
||||
|
||||
def seek_forward():
|
||||
libsaria.audio.seek_sec(5)
|
||||
|
|
|
@ -18,10 +18,6 @@ def on_pause(*args):
|
|||
footer.on_pause()
|
||||
callbacks.on_pause = on_pause
|
||||
|
||||
def on_stop(*args):
|
||||
footer.on_pause()
|
||||
invite("POSTSTOP", on_stop)
|
||||
|
||||
def on_load(*args):
|
||||
footer.on_load()
|
||||
queue.refresh()
|
||||
|
|
Loading…
Reference in New Issue