File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 71
71
(define-key queue-panel-map (kbd 'Delete ) queue:delete-selected-tracks)
72
72
(define-key queue-panel-map (kbd 'ForwardDelete ) queue:delete-selected-tracks)
73
73
74
- (define (flatten-track track )
75
- (cond ((track? track ) (track-uri track ))
76
- ((string? track) track )
74
+ (define (just-the-uri-please item )
75
+ (cond ((track? item ) (track-uri item ))
76
+ ((string? item) item )
77
77
(else #nil)))
78
78
79
79
; ; It's easier to ensure we're dealing with URIs only in Guile land.
80
80
(define (queue:set-tracks tracks )
81
- (queue:_set-tracks (map flatten-track tracks)))
81
+ (queue:_set-tracks (map just-the-uri-please tracks)))
82
82
83
- ; ; This is stolen from https://www.programming-idioms.org/idiom/10/shuffle-a-list/2021/scheme, i wasn't feeling creative.
83
+ ; ; This is stolen from https://www.programming-idioms.org/idiom/10/shuffle-a-list/2021/scheme, i
84
+ ; ; wasn't feeling creative.
84
85
(define (shuffle-list list )
85
86
(cond ((and (list? list)
86
87
(positive? (length list)))
You can’t perform that action at this time.
0 commit comments