Skip to content

Commit 1d53364

Browse files
committed
Python: Fix name of helper method
1 parent b1f0e5f commit 1d53364

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api/python/models.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ impl i_slint_core::model::Model for PyModelShared {
155155
}
156156

157157
impl PyModelShared {
158-
pub fn rust_into_js_model<'py>(
158+
pub fn rust_into_py_model<'py>(
159159
model: &ModelRc<slint_interpreter::Value>,
160160
py: Python<'py>,
161161
) -> Option<Bound<'py, PyAny>> {

api/python/value.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ impl<'py> IntoPyObject<'py> for PyValue {
2626
crate::image::PyImage::from(image).into_bound_py_any(py)
2727
}
2828
slint_interpreter::Value::Model(model) => {
29-
crate::models::PyModelShared::rust_into_js_model(model, py).map_or_else(
29+
crate::models::PyModelShared::rust_into_py_model(model, py).map_or_else(
3030
|| crate::models::ReadOnlyRustModel::from(model).into_bound_py_any(py),
3131
|m| Ok(m),
3232
)

0 commit comments

Comments
 (0)