add a bit of iter
This commit is contained in:
parent
6f185e6f6e
commit
469837ca8e
1 changed files with 3 additions and 0 deletions
|
@ -431,6 +431,9 @@ mod slide_model {
|
||||||
|
|
||||||
#[qinvokable]
|
#[qinvokable]
|
||||||
pub fn activate(mut self: Pin<&mut Self>, index: i32) -> bool {
|
pub fn activate(mut self: Pin<&mut Self>, index: i32) -> bool {
|
||||||
|
for i in self.as_ref().rust().slides.iter() {
|
||||||
|
println!("idk");
|
||||||
|
}
|
||||||
if let Some(slide) = self.as_mut().slides_mut().get_mut(index as usize) {
|
if let Some(slide) = self.as_mut().slides_mut().get_mut(index as usize) {
|
||||||
slide.active = true;
|
slide.active = true;
|
||||||
true
|
true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue