tutorial: clone() the tiles_model step 6 already like the explanation says

This commit is contained in:
Lukas Jung 2022-03-09 13:36:55 +01:00 committed by Simon Hausmann
parent 7aac74af6e
commit cd52beb85e

View file

@ -20,7 +20,7 @@ fn main() {
// Assign the shuffled Vec to the model property
let tiles_model = std::rc::Rc::new(slint::VecModel::from(tiles));
main_window.set_memory_tiles(tiles_model.into());
main_window.set_memory_tiles(tiles_model.clone().into());
main_window.run();
}