mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix switching libraries and geenrating a catalog could generate a catalog for the wrong library
This commit is contained in:
parent
d2bdd94ee6
commit
30488d82f3
@ -28,6 +28,8 @@ def gui_catalog(fmt, title, dbspec, ids, out_file_name, sync, fmt_options, conne
|
||||
if log is None:
|
||||
log = Log()
|
||||
from calibre.library import db
|
||||
from calibre.utils.config import prefs
|
||||
prefs.refresh()
|
||||
db = db()
|
||||
db.catalog_plugin_on_device_temp_mapping = dbspec
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user