mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Enhancement #1887928: Search for format in the Tag browser by right clicking on the format in the Book details panel
This commit is contained in:
parent
c16341258e
commit
358fba4a36
@ -186,6 +186,7 @@ def add_format_entries(menu, data, book_info):
|
|||||||
from calibre.gui2.ui import get_gui
|
from calibre.gui2.ui import get_gui
|
||||||
book_id = int(data['book_id'])
|
book_id = int(data['book_id'])
|
||||||
fmt = data['fmt']
|
fmt = data['fmt']
|
||||||
|
init_find_in_tag_browser(menu, book_info.find_in_tag_browser_action, 'formats', fmt)
|
||||||
db = get_gui().current_db.new_api
|
db = get_gui().current_db.new_api
|
||||||
ofmt = fmt.upper() if fmt.startswith('ORIGINAL_') else 'ORIGINAL_' + fmt
|
ofmt = fmt.upper() if fmt.startswith('ORIGINAL_') else 'ORIGINAL_' + fmt
|
||||||
nfmt = ofmt[len('ORIGINAL_'):]
|
nfmt = ofmt[len('ORIGINAL_'):]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user