From d37e85960b3ffedc9fa3792ee0f7fc13c419de28 Mon Sep 17 00:00:00 2001 From: Kayshen-X Date: Sun, 21 Jun 2026 10:21:25 +0800 Subject: [PATCH] fix(canvas): convert relinked image src to ImageSrc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The relink-image handler assigned a String to ImageNode.src, which is now ImageSrc after the Arc-share change (ee0a933e) — this conversion was applied in the working tree but missed from that commit, leaving op-host-desktop compile-broken at the committed state. Add the .into(). --- crates/op-host-desktop/src/persistence_image.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/op-host-desktop/src/persistence_image.rs b/crates/op-host-desktop/src/persistence_image.rs index 1fddeabff..748c86409 100644 --- a/crates/op-host-desktop/src/persistence_image.rs +++ b/crates/op-host-desktop/src/persistence_image.rs @@ -165,7 +165,7 @@ pub fn handle_relink_image(host: &mut WidgetHostNative, current_path: Option<&Pa if let Some(jian_ops_schema::node::PenNode::Image(image)) = op_editor_core::walkers::find_node_mut(state.active_children_mut(), &id) { - image.src = stored; + image.src = stored.into(); } // Drop the stale asset check so the warning row clears on the // next pump (it re-probes the new src).