(&mut self, song: Song)
| 256 | |
| 257 | #[tracing::instrument(level = "debug", skip(self, song))] |
| 258 | pub fn play_now(&mut self, song: Song) { |
| 259 | self.set_state(PlayerState::Playing); |
| 260 | self.insert_song_at_index(song, self.data.queue.current_index + 1, true); |
| 261 | self.data.queue.current_index += 1; |
| 262 | self.update_current_song(true); |
| 263 | } |
| 264 | |
| 265 | #[tracing::instrument(level = "debug", skip(self, songs))] |
| 266 | pub fn play_now_multiple(&mut self, songs: Vec<Song>) { |
no test coverage detected