mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-30 22:01:13 +00:00
Fix links from the tutorial to the Rust crates
The crate has been renamed. There's a redirect in place, so the release docs should be ok, but in the future we should use the right name.
This commit is contained in:
parent
eb320b0a99
commit
a9c76d44a2
5 changed files with 10 additions and 10 deletions
|
@ -34,7 +34,7 @@ Insert this code before the `main_window.run()` call:
|
|||
{{#include main_game_logic_in_rust.rs:game_logic}}
|
||||
```
|
||||
|
||||
Notice that we take a [Weak](https://slint-ui.com/docs/rust/sixtyfps/struct.weak) pointer of our `main_window`. This is very
|
||||
Notice that we take a [Weak](https://slint-ui.com/docs/rust/slint/struct.weak) pointer of our `main_window`. This is very
|
||||
important because capturing a copy of the `main_window` itself within the callback handler would result in a circular ownership.
|
||||
The `MainWindow` owns the callback handler, which itself owns a reference to the `MainWindow`, which must be weak
|
||||
instead of strong to avoid a memory leak.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue