fix pdfs not working with rust model right

This commit is contained in:
Chris Cochrun 2023-04-03 06:12:20 -05:00
parent 4296a205a8
commit 89c270e6a0
4 changed files with 22 additions and 21 deletions

View file

@ -212,6 +212,7 @@ mod slide_obj {
.get(&QString::from("slideIndex"))
.unwrap_or(QVariant::from(&0));
if let Some(int) = slindex.value::<i32>() {
println!("New slide index = {}", int);
self.as_mut().set_slide_index(int);
};
self.as_mut().emit(Signals::SlideChanged { slide: &index });