From b812cd928347fc694c9655627499bb3dcdfe3475 Mon Sep 17 00:00:00 2001 From: aiongg Date: Tue, 24 Nov 2026 16:05:46 +0000 Subject: [PATCH] Take a Save panel's answer (craft-dialogs Answer::Saved on next) --- crates/ui-egui/src/native_dialogs.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/ui-egui/src/native_dialogs.rs b/crates/ui-egui/src/native_dialogs.rs index e4921467..6b12ee5b 100644 --- a/crates/ui-egui/src/native_dialogs.rs +++ b/crates/ui-egui/src/native_dialogs.rs @@ -141,6 +141,7 @@ pub(crate) fn poll(app: &mut MaterialCraftApp) { Some(path) => chosen(app, then, &path), None => cancelled(app, then), }, + Answer::Saved { path, .. } => chosen(app, then, &path), Answer::Cancelled | Answer::Message(_) => cancelled(app, then), Answer::Unavailable(why) => { app.toast(format!("{}: {why}", tr("The file dialog could not be shown")), true);