MCPcopy Create free account
hub / github.com/Moosync/Moosync / toggle_repeat

Method toggle_repeat

src/store/player_store.rs:493–502  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

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) {

Callers 1

ControlsFunction · 0.80

Calls 1

dump_storeMethod · 0.80

Tested by

no test coverage detected