mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
reuse the existing backend instead of creating a new one
This commit is contained in:
parent
ba17567617
commit
d03e13a1bd
1 changed files with 2 additions and 2 deletions
|
@ -462,7 +462,7 @@ close the profile or restart Anki."""
|
|||
|
||||
def _loadCollection(self) -> bool:
|
||||
cpath = self.pm.collectionPath()
|
||||
self.col = Collection(cpath)
|
||||
self.col = Collection(cpath, backend=self.backend)
|
||||
|
||||
self.setEnabled(True)
|
||||
self.maybeEnableUndo()
|
||||
|
@ -471,7 +471,7 @@ close the profile or restart Anki."""
|
|||
|
||||
def reopen(self):
|
||||
cpath = self.pm.collectionPath()
|
||||
self.col = Collection(cpath)
|
||||
self.col = Collection(cpath, backend=self.backend)
|
||||
|
||||
def unloadCollection(self, onsuccess: Callable) -> None:
|
||||
def callback():
|
||||
|
|
Loading…
Reference in a new issue