mirror of
https://github.com/librespot-org/librespot.git
synced 2025-10-03 09:49:31 +02:00
connect: handle dnd of current track (#1449)
This commit is contained in:
parent
5f7cfdc76c
commit
98e9703edb
1 changed files with 8 additions and 0 deletions
|
@ -249,6 +249,14 @@ impl<'ct> ConnectState {
|
||||||
self.queue_count += 1;
|
self.queue_count += 1;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// when you drag 'n drop the current track in the queue view into the "Next from: ..."
|
||||||
|
// section, it is only send as an empty item with just the provider and metadata, so we have
|
||||||
|
// to provide set the uri from the current track manually
|
||||||
|
tracks
|
||||||
|
.iter_mut()
|
||||||
|
.filter(|t| t.uri.is_empty())
|
||||||
|
.for_each(|t| t.uri = self.current_track(|ct| ct.uri.clone()));
|
||||||
|
|
||||||
self.player_mut().next_tracks = tracks;
|
self.player_mut().next_tracks = tracks;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue