mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 06:11:16 +00:00
Rename the "resource" type to "image"
This commit is contained in:
parent
44e81a40d6
commit
c840b046ae
14 changed files with 21 additions and 19 deletions
|
@ -209,7 +209,7 @@ fn to_eval_value<'cx>(
|
|||
Ok(Value::Model(sixtyfps_interpreter::ModelPtr(m)))
|
||||
}
|
||||
},
|
||||
Type::Resource => {
|
||||
Type::Image => {
|
||||
Ok(Value::Resource(Resource::AbsoluteFilePath(val.to_string(cx)?.value().into())))
|
||||
}
|
||||
Type::Bool => Ok(Value::Bool(val.downcast_or_throw::<JsBoolean, _>(cx)?.value())),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue