diff options
| author | Mason Reed <mason@vector35.com> | 2026-03-29 22:36:50 -0700 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2026-03-29 22:36:50 -0700 |
| commit | e5c73ffdf3d1914596f0ffd1c989330657934627 (patch) | |
| tree | 81c8c8d628da075dc385b8cef14160156d530b36 /plugins/pdb-ng | |
| parent | 318f0bda9695a25320a382aa8c1757804c1ff5e4 (diff) | |
[PDB Import] Fix headless being prompted with an interaction for mismatched PDB
Fixes https://github.com/Vector35/binaryninja-api/issues/7836
Diffstat (limited to 'plugins/pdb-ng')
| -rw-r--r-- | plugins/pdb-ng/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/pdb-ng/src/lib.rs b/plugins/pdb-ng/src/lib.rs index 61ff54b2..d6678a17 100644 --- a/plugins/pdb-ng/src/lib.rs +++ b/plugins/pdb-ng/src/lib.rs @@ -495,12 +495,12 @@ impl PDBParser { match ask.as_str() { "true" => {}, - "ask" => { + "ask" if binaryninja::is_ui_enabled() => { if interaction::show_message_box( "No PDB Information", "This file does not look like it was compiled with a PDB, so your PDB might not correctly apply to the analysis. Do you want to load it anyway?", MessageBoxButtonSet::YesNoButtonSet, - binaryninja::interaction::MessageBoxIcon::QuestionIcon + interaction::MessageBoxIcon::QuestionIcon ) == MessageBoxButtonResult::NoButton { return Err(anyhow!("User cancelled missing info load")); } |
