mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
FTS: Only use calibre internal viewer for configured fmts
This commit is contained in:
parent
d38bcc7ad0
commit
63563fe0c3
@ -785,7 +785,10 @@ class ResultsPanel(QWidget):
|
||||
text = sanitize_text_pat.sub(' ', text)
|
||||
gui = get_gui()
|
||||
if gui is not None:
|
||||
if fmt in config['internally_viewed_formats']:
|
||||
gui.iactions['View'].view_format_by_id(book_id, fmt, open_at=f'search:{text}')
|
||||
else:
|
||||
gui.iactions['View'].view_format_by_id(book_id, fmt)
|
||||
|
||||
def request_stop_search(self):
|
||||
if question_dialog(self, _('Are you sure?'), _('Abort the current search?')):
|
||||
|
Loading…
x
Reference in New Issue
Block a user