mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-26 11:08:48 -06:00
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 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
31828efd6e
commit
cf730534f0
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user