mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 23:42:23 -04:00
fix progress handler
This commit is contained in:
parent
05432e1b32
commit
edd04cffa8
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ class ProgressManager(object):
|
||||||
def _dbProgress(self):
|
def _dbProgress(self):
|
||||||
"Called from SQLite."
|
"Called from SQLite."
|
||||||
# do nothing if we don't have a progress window
|
# do nothing if we don't have a progress window
|
||||||
if not self._progressWin:
|
if not self._win:
|
||||||
return
|
return
|
||||||
# make sure we're not executing too frequently
|
# make sure we're not executing too frequently
|
||||||
if (time.time() - self.lastDbProgress) < 0.2:
|
if (time.time() - self.lastDbProgress) < 0.2:
|
||||||
|
|
Loading…
Reference in a new issue