mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-30 04:58:34 -06:00
fix(ui): reuse translated copy-permission message
This commit is contained in:
@@ -40,7 +40,7 @@ impl PdfCraftApp {
|
||||
// copy permission before extracting any of that text, not only when creating bookmarks.
|
||||
let can_copy = self.session.get(id).is_some_and(|d| d.permissions().is_none_or(|p| p.copy()));
|
||||
if !can_copy {
|
||||
self.notify_tr("Copying text and images is not permitted");
|
||||
self.notify_tr("The document's security settings don't allow copying text and images");
|
||||
return;
|
||||
}
|
||||
let styles = self.session.get(id).map(|d| d.text_styles()).unwrap_or_default();
|
||||
|
||||
Reference in New Issue
Block a user