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

Method clear_queue_and_play

src/utils/context_menu.rs:109–115  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

107
108 #[tracing::instrument(level = "debug", skip(self))]
109 pub fn clear_queue_and_play(&self) {
110 let player_store = use_context::<RwSignal<PlayerStore>>().unwrap();
111 player_store.update(|store| {
112 store.clear_queue();
113 store.play_now_multiple(self.current_or_list())
114 });
115 }
116
117 #[tracing::instrument(level = "debug", skip(self))]
118 pub fn add_to_library(&self) {

Callers

nothing calls this directly

Calls 3

clear_queueMethod · 0.80
play_now_multipleMethod · 0.80
current_or_listMethod · 0.80

Tested by

no test coverage detected