aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorColin Okay <colin@cicadas.surf>2022-10-31 07:10:39 -0500
committerColin Okay <colin@cicadas.surf>2022-10-31 07:10:39 -0500
commita125ca9e82762f36930bd14e80232b005b7c56fc (patch)
treebf433da8cb7f82005d8dfda726cf50a755961997
parent67c7b37a85955fc37827403c570446fe90b7d9b7 (diff)
Fix: playback control button text when playlist ends
-rw-r--r--playlist.lisp13
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