From 4da7b481ddb219eabbcb0b5dfc4213223018c1c6 Mon Sep 17 00:00:00 2001 From: bflatastic Date: Sun, 22 Nov 2026 06:34:36 +0700 Subject: [PATCH] form_dialogs: a host refusal shows its reason under the rows of a dialog without a held OK --- crates/ui-patterns/src/patterns/form_dialogs/dialog.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/ui-patterns/src/patterns/form_dialogs/dialog.rs b/crates/ui-patterns/src/patterns/form_dialogs/dialog.rs index 643a13037..10b2b902a 100644 --- a/crates/ui-patterns/src/patterns/form_dialogs/dialog.rs +++ b/crates/ui-patterns/src/patterns/form_dialogs/dialog.rs @@ -1315,7 +1315,9 @@ impl StackDialog for HostedParamDialog { if let Some(presets) = &self.presets { dialog = dialog.presets(ParamPresets { rows: &presets.rows, values: &presets.values, built_in: &presets.built_in }); } - if self.hold { + // The held answer also carries a refusal the host keeps on a dialog without a held OK: its notice shows the reason + // under the rows, and OK is off meanwhile, so nothing is filed. + if self.hold || self.held.refusal_blocks() { dialog = dialog.held(&mut self.held); } if let Some(point) = centre {