In the following example, clicking the button toggles the boolean in the model, and all widgets except the image created via Image::from_icon_name update as expected.
Changing the default value of the boolean changes which value the image starts with, but that widget never updates for some reason.
This example also demonstrates a workaround: use property_icon_name and property_icon_size instead, and everything works as expected.
In the following example, clicking the button toggles the boolean in the model, and all widgets except the image created via
Image::from_icon_name
update as expected.Changing the default value of the boolean changes which value the image starts with, but that widget never updates for some reason.
This example also demonstrates a workaround: use
property_icon_name
andproperty_icon_size
instead, and everything works as expected.Cargo.toml
:main.rs
: