Add to the item context menu in book details the ability to copy custom URL links

This commit is contained in:
Charles Haley 2025-02-12 13:54:50 +00:00
parent b906db229c
commit 749b421066

View File

@ -620,6 +620,8 @@ def create_copy_links(menu, data=None):
sep = menu.addSeparator() # Note: separators are really actions
if data and data.get('type', '') == 'cc_url' and (u := data.get('url', '')):
link_action(_('Custom web search link'), u)
link_action(_('Link to show book in calibre'), f'calibre://show-book/{library_id}/{book_id}')
link_action(_('Link to show book details in a popup window'),
f'calibre://book-details/{library_id}/{book_id}')