[fix]: panic from audio not existing in slide
This commit is contained in:
parent
20c91ee868
commit
be47681fa7
1 changed files with 3 additions and 1 deletions
|
|
@ -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"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue