From e5c73ffdf3d1914596f0ffd1c989330657934627 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Sun, 29 Mar 2026 22:36:50 -0700 Subject: [PDB Import] Fix headless being prompted with an interaction for mismatched PDB Fixes https://github.com/Vector35/binaryninja-api/issues/7836 --- plugins/pdb-ng/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins') 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")); } -- cgit v1.3.1