mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Full text search: Fix books edit with the edit book tool not being automatically re-indexed
This commit is contained in:
parent
bbcd3bce1a
commit
4305a799fb
@ -790,6 +790,7 @@ class Main(MainWindow, MainWindowMixin, DeviceMixin, EmailMixin, # {{{
|
||||
db = m.db.new_api
|
||||
if m.db.library_id == library_id and db.has_id(book_id):
|
||||
db.format_metadata(book_id, fmt, allow_cache=False, update_db=True)
|
||||
db.reindex_fts_book(book_id, fmt)
|
||||
db.update_last_modified((book_id,))
|
||||
m.refresh_ids((book_id,))
|
||||
db.event_dispatcher(db.EventType.book_edited, book_id, fmt)
|
||||
|
Loading…
x
Reference in New Issue
Block a user