mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
7acc25fcbc
commit
1aac334e64
@ -177,6 +177,7 @@ class GuiLibraryBroker(LibraryBroker):
|
||||
self.loaded_dbs[library_id] = db
|
||||
db.new_api.server_library_id = library_id
|
||||
if olddb is not None and samefile(olddb.backend.library_path, db.backend.library_path):
|
||||
# This happens after a restore database, for example
|
||||
olddb.close(), olddb.break_cycles()
|
||||
self._prune_loaded_dbs()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user