mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
7eb4f5fa7b
commit
c3811309b0
@ -656,7 +656,7 @@ def get_current_db():
|
|||||||
'''
|
'''
|
||||||
from calibre.gui2.ui import get_gui
|
from calibre.gui2.ui import get_gui
|
||||||
gui = get_gui()
|
gui = get_gui()
|
||||||
if gui is not None:
|
if gui is not None and gui.current_db is not None:
|
||||||
return gui.current_db
|
return gui.current_db
|
||||||
from calibre.library import db
|
from calibre.library import db
|
||||||
return db()
|
return db()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user