pub fn signal_as_bool(value: &str) -> Option<bool>Expand description
The boolean a signal’s stringified value states, when it states one.
Stricter than signal_is_truthy on purpose: a binding that drives a
state a widget already has, such as bind-checked or bind-disabled,
leaves that state alone unless the signal says which way it goes.
"anything" is a value nobody meant as a boolean, so the widget keeps
what its markup gave it rather than silently turning on.
crate::property_store::PropertyStore::get_global_bool reads a typed
Bool cell directly and passes a string one through here, so a value that
arrives as text decides the same way wherever it is read: in a running
app, and in a build writing the page ahead of one.