mirror of https://github.com/laurent22/joplin.git
Desktop: Resolves #10746: Fix "View OCR text" not present in context menu when right-clicking an image (#10842)
parent
0caecedb8f
commit
a1aa4f78c9
|
@ -150,7 +150,9 @@ export function menuItems(dispatch: Function, htmlToMd: HtmlToMarkdownHandler, m
|
||||||
bridge().showInfoMessageBox(_('This attachment does not have OCR data (Status: %s)', resourceOcrStatusToString(resource.ocr_status)));
|
bridge().showInfoMessageBox(_('This attachment does not have OCR data (Status: %s)', resourceOcrStatusToString(resource.ocr_status)));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
isActive: (itemType: ContextMenuItemType, _options: ContextMenuOptions) => itemType === ContextMenuItemType.Resource,
|
isActive: (itemType: ContextMenuItemType, options: ContextMenuOptions) => {
|
||||||
|
return itemType === ContextMenuItemType.Resource || (itemType === ContextMenuItemType.Image && options.resourceId);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
copyPathToClipboard: {
|
copyPathToClipboard: {
|
||||||
label: _('Copy path to clipboard'),
|
label: _('Copy path to clipboard'),
|
||||||
|
|
Loading…
Reference in New Issue