slide changing works now
Some checks are pending
/ test (push) Waiting to run

This commit is contained in:
Chris Cochrun 2025-08-17 06:08:49 -05:00
parent 004eb60470
commit f3d0cd5459
2 changed files with 71 additions and 4 deletions

View file

@ -244,13 +244,31 @@ impl Presenter {
let audio = PathBuf::from(audio);
debug!("{:?}", audio);
if audio.exists() {
match &self.audio {
Some(aud) if aud != &audio => {
let old_audio = self.audio.clone();
match old_audio {
Some(current_audio)
if current_audio != audio =>
{
self.audio = Some(audio.clone());
debug!(
?audio,
?current_audio,
"starting audio"
);
tasks.push(self.start_audio());
}
Some(_) => (),
Some(current_audio) => {
debug!(
?audio,
?current_audio,
"could not find audio"
);
}
None => {
debug!(
?audio,
"could not find audio"
);
self.audio = Some(audio.clone());
tasks.push(self.start_audio());
}