diff options
author | Colin Okay <colin@cicadas.surf> | 2022-10-31 07:10:39 -0500 |
---|---|---|
committer | Colin Okay <colin@cicadas.surf> | 2022-10-31 07:10:39 -0500 |
commit | a125ca9e82762f36930bd14e80232b005b7c56fc (patch) | |
tree | bf433da8cb7f82005d8dfda726cf50a755961997 | |
parent | 67c7b37a85955fc37827403c570446fe90b7d9b7 (diff) |
Fix: playback control button text when playlist ends
-rw-r--r-- | playlist.lisp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/playlist.lisp b/playlist.lisp index 281b9bf..b5c2c87 100644 --- a/playlist.lisp +++ b/playlist.lisp @@ -133,14 +133,13 @@ (advance-now-playing e)))) (defun advance-now-playing (e) - (when-let* ((ctl - (cur-playlist-ctl e)) - (next - (find-next-track ctl (now-playing-track ctl)))) + (when-let ((ctl + (cur-playlist-ctl e))) (stop-playback ctl) - (setf (now-playing-track ctl) next) - (load-now-playing-display ctl next) - (start-playback ctl))) + (when-let (next (find-next-track ctl (now-playing-track ctl))) + (setf (now-playing-track ctl) next) + (load-now-playing-display ctl next) + (start-playback ctl)))) (defun previous-now-playing (e) (when-let* ((ctl |