mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix the formatter functions not being reloaded after a check library
This commit is contained in:
parent
b52ef8956c
commit
dc55185da7
@ -493,16 +493,16 @@ class ChooseLibraryAction(InterfaceAction):
|
||||
m.stop_metadata_backup()
|
||||
db = m.db
|
||||
db.prefs.disable_setting = True
|
||||
library_path = db.library_path
|
||||
|
||||
d = DBCheck(self.gui, db)
|
||||
d.start()
|
||||
try:
|
||||
d.conn.close()
|
||||
m.close()
|
||||
except:
|
||||
pass
|
||||
d.break_cycles()
|
||||
self.gui.library_moved(db.library_path, call_close=not
|
||||
d.closed_orig_conn)
|
||||
self.gui.library_moved(library_path, call_close=False)
|
||||
if d.rejected:
|
||||
return
|
||||
if d.error is None:
|
||||
|
@ -37,7 +37,6 @@ class DBCheck(QDialog): # {{{
|
||||
self.resize(self.sizeHint() + QSize(100, 50))
|
||||
self.error = None
|
||||
self.db = db.new_api
|
||||
self.closed_orig_conn = False
|
||||
self.rejected = False
|
||||
|
||||
def start(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user