branch: externals/listen
commit 9d8825a2ff776a127c12ba2e968a0c43a8b99e5c
Author: Adam Porter <[email protected]>
Commit: Adam Porter <[email protected]>
Fix: (listen-menu) Volume description when not playing
---
listen.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/listen.el b/listen.el
index a4e5e5c85f..842094c030 100755
--- a/listen.el
+++ b/listen.el
@@ -394,8 +394,9 @@ TIME is a string like \"SS\", \"MM:SS\", or \"HH:MM:SS\"."
listen-player)
:description
(lambda ()
- (if listen-player
- (format "Volume: %.0f%%" (listen--volume listen-player))
+ (if-let ((listen-player)
+ (volume (listen--volume listen-player)))
+ (format "Volume: %.0f%%" volume)
"Volume: N/A"))
("=" "Set" listen-volume)
("v" "Down" (lambda ()