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:
Charles Haley 2020-07-17 11:41:46 +01:00
parent c16341258e
commit 358fba4a36

View File

@ -186,6 +186,7 @@ def add_format_entries(menu, data, book_info):
from calibre.gui2.ui import get_gui
book_id = int(data['book_id'])
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
ofmt = fmt.upper() if fmt.startswith('ORIGINAL_') else 'ORIGINAL_' + fmt
nfmt = ofmt[len('ORIGINAL_'):]