fix(playback): harden idle queue and gapless transitions

cx
This commit is contained in:
vicrodh committed 2026-08-28 02:57:09 -06:00
1 parent 97f9b85d7f
commit 3d0ee66708
8 files changed
+178 -17

No files matched your search

+2
View File
@@ -615,6 +615,7 @@ static LOCAL_ROW_IDS: std::sync::LazyLock<Mutex<HashSet<u64>>> =
pub async fn publish(runtime: &Arc<AppRuntime<LoggingAdapter>>) {
let t_build = std::time::Instant::now();
let state = runtime.core().get_queue_state_full().await;
let has_play_target = state.total_tracks > 0;
let (search, requested_page) = {
let view = VIEW.lock().unwrap();
(view.search.clone(), view.page)
@@ -745,6 +746,7 @@ pub async fn publish(runtime: &Arc<AppRuntime<LoggingAdapter>>) {
t_build.elapsed()
);
crate::queue_bridge::ui(move |mut b| {
b.as_mut().set_has_play_target(has_play_target);
b.as_mut().set_queue_json(QString::from(json.as_str()));
});
}