Fix: File dialogs that are not part of a form (#4752)

This commit is contained in:
Klemen authored and GitHub committed 2025-10-09 15:19:51 -07:00
1 parent 9f5cae7e61
commit 09c1de7574
1 file changed
+1 -1
+1 -1
View File
@@ -200,7 +200,7 @@ fn file_dialog_responder(
.values
.iter()
.position(|x| x.key == file_dialog.target_name)
.context("Failed to find target_name in values")?;
.unwrap_or(0);
// Remove any existing entries
file_dialog