Skip to content

Commit e5c73ff

Browse files
committed
[PDB Import] Fix headless being prompted with an interaction for mismatched PDB
Fixes #7836
1 parent 318f0bd commit e5c73ff

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/pdb-ng/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -495,12 +495,12 @@ impl PDBParser {
495495

496496
match ask.as_str() {
497497
"true" => {},
498-
"ask" => {
498+
"ask" if binaryninja::is_ui_enabled() => {
499499
if interaction::show_message_box(
500500
"No PDB Information",
501501
"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?",
502502
MessageBoxButtonSet::YesNoButtonSet,
503-
binaryninja::interaction::MessageBoxIcon::QuestionIcon
503+
interaction::MessageBoxIcon::QuestionIcon
504504
) == MessageBoxButtonResult::NoButton {
505505
return Err(anyhow!("User cancelled missing info load"));
506506
}

0 commit comments

Comments
 (0)