mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Book details popup: Fix fields for external libraries not using the correct preference
This commit is contained in:
parent
aaa4d223d1
commit
86126438ad
@ -257,11 +257,7 @@ def render_html(mi, vertical, widget, all_fields=False, render_data_func=None,
|
||||
|
||||
|
||||
def get_field_list(fm, use_defaults=False, pref_name='book_display_fields', mi=None):
|
||||
if mi is not None and hasattr(mi, '_bd_dbwref') and mi._bd_dbwref is not None:
|
||||
db = mi._bd_dbwref
|
||||
else:
|
||||
from calibre.gui2.ui import get_gui
|
||||
db = get_gui().current_db
|
||||
db = db_for_mi(mi)
|
||||
if use_defaults:
|
||||
src = db.prefs.defaults
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user