From cf730534f0ec2967edb0222b5d8dfdce9516603a Mon Sep 17 00:00:00 2001 From: Lombardi2003 Date: Thu, 22 Oct 2026 18:13:59 +0200 Subject: [PATCH] fix(ui): "Don't show again" only on the bar that shows the security notice (#4035) From review of #4096: when a secured form's scripts were turned off, the bar shows that message instead of the security one, but still offered "Don't show again", which would turn off a notice the user had not seen. Co-Authored-By: Claude Opus 5.5 --- crates/ui-egui/src/canvas.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/ui-egui/src/canvas.rs b/crates/ui-egui/src/canvas.rs index 45265fe9d..d06efd0ed 100644 --- a/crates/ui-egui/src/canvas.rs +++ b/crates/ui-egui/src/canvas.rs @@ -4920,7 +4920,8 @@ fn notices( if secured && doc.can_unlock() && crate::widgets::pill_button(ui, tl!("Unlock…"), true).clicked() { unlock = true; } - if secured && crate::widgets::pill_button(ui, tl!("Don't show again"), false).clicked() { + // Only when the bar shows the security message: a form's stopped scripts come first. + if secured && !scripts_off && crate::widgets::pill_button(ui, tl!("Don't show again"), false).clicked() { hide_secured = true; } if repaired && !secured && info.fields.is_empty() && crate::widgets::pill_button(ui, tl!("Details"), false).clicked() {