From 490cfd3072f02ae51b760110a6ccd905f339987c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 19 Aug 2026 22:04:55 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(app):=20a=20preview=20shows?= =?UTF-8?q?=20neither=20the=20timeline's=20captions=20nor=20its=20hints?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The timeline's cue overlay would caption the wrong film over a preview picture, and the drop-a-file hint keyed off the timeline session alone. --- crates/app/src/render.rs | 3 +-- crates/app/src/ui/preview.rs | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/app/src/render.rs b/crates/app/src/render.rs index 556a01e..c76da72 100644 --- a/crates/app/src/render.rs +++ b/crates/app/src/render.rs @@ -648,8 +648,7 @@ impl Render for Player { // what it wants instead. The window // is already the drop target. .or_else(|| { - self.session - .is_none() + (self.active_session().is_none()) .then(|| empty_hint().into_any_element()) }), ) diff --git a/crates/app/src/ui/preview.rs b/crates/app/src/ui/preview.rs index fb296d2..a7bc3a1 100644 --- a/crates/app/src/ui/preview.rs +++ b/crates/app/src/ui/preview.rs @@ -120,6 +120,9 @@ impl Player { let shown: Option<(Lane, Vec)> = self .active_sub_lane() .filter(|_| self.subs_on) + // A preview is another file: the timeline's words over its + // picture would caption the wrong film. + .filter(|_| self.preview_session.is_none()) .and_then(|lane| { let cues = self.session.as_ref()?.sub_lane_cues(lane); let now: Vec<_> = cues_at(&cues, at).into_iter().cloned().collect();