mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 14:17:13 -05:00
don't process events in progress bar start/update, it leads to obscure bugs
This commit is contained in:
parent
65a718fdbe
commit
d9a3658b56
1 changed files with 0 additions and 2 deletions
|
|
@ -221,10 +221,8 @@ class ProgressWin(object):
|
||||||
self.app = QApplication.instance()
|
self.app = QApplication.instance()
|
||||||
if max == 0:
|
if max == 0:
|
||||||
self.diag.setLabelText(_("Processing..."))
|
self.diag.setLabelText(_("Processing..."))
|
||||||
self.app.processEvents()
|
|
||||||
|
|
||||||
def update(self, label=None, value=None):
|
def update(self, label=None, value=None):
|
||||||
self.app.processEvents()
|
|
||||||
#print self.min, self.counter, self.max, label, time.time() - self.lastTime
|
#print self.min, self.counter, self.max, label, time.time() - self.lastTime
|
||||||
self.lastTime = time.time()
|
self.lastTime = time.time()
|
||||||
if label:
|
if label:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue