diff options
| author | Mason Reed <mason@vector35.com> | 2025-10-06 19:06:44 -0400 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2025-10-07 14:11:02 -0400 |
| commit | bbda2672f57de2f432222cf64b47f1f2631d3df7 (patch) | |
| tree | 5a1b6a4d7e1309cc0cdc3c918469b50c925719c6 /rust/tests | |
| parent | c92e768dc938e8d9a9a5822222cef6fa52c454c9 (diff) | |
[Rust] Fix save file dialog not respecting default file path
Fixes https://github.com/Vector35/binaryninja-api/issues/7268
Diffstat (limited to 'rust/tests')
| -rw-r--r-- | rust/tests/interaction.rs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/rust/tests/interaction.rs b/rust/tests/interaction.rs index 5b59a436..2f38241c 100644 --- a/rust/tests/interaction.rs +++ b/rust/tests/interaction.rs @@ -94,14 +94,9 @@ impl InteractionHandler for MyInteractionHandler { FormInputField::DirectoryName { ref mut value, default, - default_name, .. } => { - let new_value = format!( - "example{}{}", - default.clone().unwrap_or_default(), - default_name.clone().unwrap_or_default() - ); + let new_value = format!("example{}", default.clone().unwrap_or_default(),); *value = Some(new_value); true } @@ -134,7 +129,6 @@ fn test_get_directory_default() { let mut my_form = Form::new("get_dir_default"); my_form.add_field(FormInputField::DirectoryName { prompt: "get_dir_default".to_string(), - default_name: Some("_default_name".to_string()), default: Some("_default".to_string()), value: None, }); @@ -142,7 +136,7 @@ fn test_get_directory_default() { assert_eq!(my_form.prompt(), true); assert_eq!( my_form.fields[0].try_value_string(), - Some("example_default_default_name".to_string()) + Some("example_default".to_string()) ) } |
