forge
Explore
Log in

Don't you dare go Hollow

The library preview starts playing the moment it opens

Browse files at this commit

dc4ce879278fd2d51615f347bf4c694910dfa640Ahmet Kaan GümüşParent: e3392c8
  • fix
    • the library preview starts playing the moment it opens
Show full message
🐛 fix(app): the library preview starts playing the moment it opens

open_preview built the session but never called play(), so the row's
own button — whose tooltip promises "plays it" — showed a frozen
first frame until a second click on the transport.
crates/app/src/player/library.rsmodified+3 -0
@@ -233,6 +233,9 @@ impl Player {
233 Ok(mut session) => {233 Ok(mut session) => {
234 session.drop_late_pictures(true);234 session.drop_late_pictures(true);
235 session.set_gain(self.volume.gain());235 session.set_gain(self.volume.gain());
236+ // The button says "plays it" -- a preview that opens paused
237+ // reads as a frozen picture, not as a player awaiting a click.
238+ session.play();
236 self.preview_session = Some(session);239 self.preview_session = Some(session);
237 self.notify_user(240 self.notify_user(
238 format!("PREVIEWING {} — not on the timeline; esc stops it", file_name(path))241 format!("PREVIEWING {} — not on the timeline; esc stops it", file_name(path))