mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-30 05:44:52 +00:00
Some refactoring of the rust generated code
Always use a Pin<Rc> for the component. (This is required to support repeater within repeater as well anyway) Do not use the context within the binding. We can get along by simply capturing a weak pointer to the component
This commit is contained in:
parent
1a0d053889
commit
ab7ae9f3e2
15 changed files with 74 additions and 73 deletions
|
@ -20,7 +20,7 @@ sixtyfps::sixtyfps!{
|
|||
}
|
||||
fn main() {
|
||||
# return; // Don't run a window in an example
|
||||
HelloWorld::default().run()
|
||||
HelloWorld::new().run()
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -56,7 +56,7 @@ Then in your main file
|
|||
```ignore
|
||||
sixtyfps::include_modules!();
|
||||
fn main() {
|
||||
HelloWorld::default().run()
|
||||
HelloWorld::new().run()
|
||||
}
|
||||
```
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue