Skip to content
Discussion options

You must be logged in to vote

I can see two options:

  1. If you want to set all new data entirely, then you could send the Vec instead of the VecModel/ModelRc - that's Send.
  2. If you'd like to make incremental changes, then you could fetch the ModelRc from ui_week (w in the closure) first and then call push, like in the example at the very bottom of https://docs.rs/slint/latest/slint/struct.ModelRc.html#example

Would that work for you?

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@eatradish
Comment options

@tronical
Comment options

@eatradish
Comment options

@eatradish
Comment options

Answer selected by eatradish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants