From c1dfa9eceef390cf0306bb00c9673fcb036d5e2c Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Tue, 3 Nov 2026 22:59:02 -0500 Subject: [PATCH] fix(ui): write a plugin's offered file through the confined file helper (#1960) --- crates/ui-egui/src/dialogs/plugins_ui.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ui-egui/src/dialogs/plugins_ui.rs b/crates/ui-egui/src/dialogs/plugins_ui.rs index 350be2d6e..d335b277a 100644 --- a/crates/ui-egui/src/dialogs/plugins_ui.rs +++ b/crates/ui-egui/src/dialogs/plugins_ui.rs @@ -138,7 +138,7 @@ pub(crate) fn save_file(app: &mut FigApp, data: &Value) { let shown = name.clone(); app.pick_save(tr("Save file"), &name, &exts, move |app, path| { let file = path.file_name().map(|f| f.to_string_lossy().to_string()).unwrap_or(shown); - match std::fs::write(&path, &bytes) { + match figcraft_engine::file_access::write(&path, &bytes) { Ok(()) => app.toast(trf("Saved {name}", &[("name", &file)])), Err(_) => app.toast(tr("Couldn't save the file")), }