The library preview starts playing the moment it opens
Browse files at this commitdc4ce879278fd2d51615f347bf4c694910dfa640Parent: e3392c8- fix
- the library preview starts playing the moment it opens
1 changed file +3 -0
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)) |