mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-03 10:23:32 +00:00
![]() code like so: ```slint callback foo(); if true : Button { clicked => { true ? foo() : foo(); } } ``` the code like foo() use the `option.map()` to get to the parent, but then it needs to still be wrapped in a `{...}` to convert that to a `()` expression Fixes #5883 |
||
---|---|---|
.. | ||
cpp.rs | ||
rust.rs |