(&mut self)
| 491 | |
| 492 | #[tracing::instrument(level = "debug", skip(self))] |
| 493 | pub fn toggle_repeat(&mut self) { |
| 494 | let new_mode = match self.data.player_details.repeat { |
| 495 | RepeatModes::None => RepeatModes::Once, |
| 496 | RepeatModes::Once => RepeatModes::Loop, |
| 497 | RepeatModes::Loop => RepeatModes::None, |
| 498 | }; |
| 499 | |
| 500 | self.data.player_details.repeat = new_mode; |
| 501 | self.dump_store(&[DumpType::PlayerState]); |
| 502 | } |
| 503 | |
| 504 | #[tracing::instrument(level = "debug", skip(self))] |
| 505 | pub fn shuffle_queue(&mut self) { |