fix(qconnect): route shuffle and repeat through runtime

cx
This commit is contained in:
vicrodh committed 2026-03-13 20:28:11 -06:00
1 parent 2efa1b0809
commit 09c6d8f1f8
7 files changed
+284 -3

No files matched your search

+7
View File
@@ -158,6 +158,13 @@ impl<A: FrontendAdapter + Send + Sync + 'static> QbzCore<A> {
self.emit(CoreEvent::ShuffleChanged { enabled }).await;
}
/// Set shuffle mode using an authoritative order.
pub async fn set_shuffle_with_order(&self, enabled: bool, shuffle_order: Option<Vec<usize>>) {
let queue = self.queue.write().await;
queue.set_shuffle_with_order(enabled, shuffle_order);
self.emit(CoreEvent::ShuffleChanged { enabled }).await;
}
/// Toggle shuffle and return new state
pub async fn toggle_shuffle(&self) -> bool {
let queue = self.queue.write().await;