From a7683f58216ddf632b585b25f50d61f25259859f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Thu, 27 Aug 2026 13:47:34 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(app):=20subtitle=20row's=20s?= =?UTF-8?q?econd=20line=20reads=20the=20timeline,=20not=20a=20constant?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A dropped track's row kept saying "not placed" forever -- the detail was a literal fallback, never a placement check. It now names the subtitle lane(s) holding the track's captions (S1), falling back to "not placed" only when none does. --- crates/app/src/ui/dock_stance.rs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/crates/app/src/ui/dock_stance.rs b/crates/app/src/ui/dock_stance.rs index 652f8af..0c17c91 100644 --- a/crates/app/src/ui/dock_stance.rs +++ b/crates/app/src/ui/dock_stance.rs @@ -630,6 +630,24 @@ fn subtitle_tab_rows(player: &Player, cx: &mut Context) -> (usize, Vec subtitle_rows(session.subtitles()), None => Vec::new(), }; + // Which lane(s) actually hold each track's captions right now -- the + // row's second line answers "is it showing?", so it has to read the + // timeline, not stay the literal "not placed" it was born saying (the + // old palette's badge never updated after a drop). + let placed_on = |track: usize| -> Option { + let session = player.session.as_ref()?; + let lanes: Vec = session + .lanes() + .into_iter() + .filter(|lane| session.sub_lane(*lane).iter().any(|sub| sub.track == track)) + .map(|lane| lane.label()) + .collect(); + if lanes.is_empty() { + None + } else { + Some(lanes.join(" ")) + } + }; let count: usize = groups.iter().map(|group| group.rows.len()).sum(); let rows: Vec<_> = groups .into_iter() @@ -653,6 +671,7 @@ fn subtitle_tab_rows(player: &Player, cx: &mut Context) -> (usize, Vec