mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-31 07:37:24 +00:00
tutorial: clone() the tiles_model step 6 already like the explanation says
This commit is contained in:
parent
7aac74af6e
commit
cd52beb85e
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue