mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-03 10:23:32 +00:00
![]() state info properties are special and cannot simply be inlined or set (because we need to record the time it was changed and stuff) So disable the optimization for now. In fact, what could be done is to remove the state entirely if the state property is constant. But that change is a bit more involved This patch does: - Don't inline const state property - Don't generate a call to .set in the generated code - Also allowed to debug the expression with a context from the generator (added T generic parameter to the pretty printer) Fix panic reported in https://github.com/slint-ui/slint/issues/1327#issuecomment-1151244049 |
||
---|---|---|
.. | ||
optim_passes | ||
expression.rs | ||
item_tree.rs | ||
lower_expression.rs | ||
lower_to_item_tree.rs | ||
pretty_print.rs |