Deboguage pmo_remote_control

This commit is contained in:
2025-12-03 23:17:41 +01:00
parent 1432f2507c
commit 75878be564
11 changed files with 2620 additions and 269 deletions

View File

@@ -129,4 +129,16 @@ impl PlaybackQueue {
pub fn full_snapshot(&self) -> (Vec<PlaybackItem>, Option<usize>) {
(self.items.clone(), self.current_index)
}
pub fn set_current_index(&mut self, index: Option<usize>) {
if let Some(idx) = index {
if idx < self.items.len() {
self.current_index = Some(idx);
} else {
self.current_index = None;
}
} else {
self.current_index = None;
}
}
}