mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
py3 always has a db progress handler
This commit is contained in:
parent
b28ca8c0d1
commit
ca9d80c014
1 changed files with 1 additions and 5 deletions
|
@ -29,11 +29,7 @@ class ProgressManager:
|
||||||
"Install a handler in the current DB."
|
"Install a handler in the current DB."
|
||||||
self.lastDbProgress = 0
|
self.lastDbProgress = 0
|
||||||
self.inDB = False
|
self.inDB = False
|
||||||
try:
|
db.set_progress_handler(self._dbProgress, 10000)
|
||||||
db.set_progress_handler(self._dbProgress, 10000)
|
|
||||||
except:
|
|
||||||
print("""\
|
|
||||||
Your pysqlite2 is too old. Anki will appear frozen during long operations.""")
|
|
||||||
|
|
||||||
def _dbProgress(self):
|
def _dbProgress(self):
|
||||||
"Called from SQLite."
|
"Called from SQLite."
|
||||||
|
|
Loading…
Reference in a new issue