[fix]: panic from audio not existing in slide

This commit is contained in:
Chris Cochrun 2026-04-25 06:40:16 -05:00
parent 20c91ee868
commit be47681fa7

View file

@ -1134,7 +1134,9 @@ impl Presenter {
self.sink.1.stop();
self.sink.1.clear();
self.audio_duration = None;
if let Some(audio) = &self.audio {
if let Some(audio) = &self.audio
&& audio.exists()
{
let file = BufReader::new(
File::open(audio)
.expect("There should be an audio file here"),