mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Add to the item context menu in book details the ability to copy custom URL links
This commit is contained in:
parent
b906db229c
commit
749b421066
@ -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}')
|
||||
|
Loading…
x
Reference in New Issue
Block a user