mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
accept clicks on the progress dialog close button when updating
This commit is contained in:
parent
0c27126817
commit
4fc898ec1e
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ class ProgressManager:
|
||||||
self._win.form.progressBar.setValue(self._counter)
|
self._win.form.progressBar.setValue(self._counter)
|
||||||
if process and elapsed >= 0.2:
|
if process and elapsed >= 0.2:
|
||||||
self._updating = True
|
self._updating = True
|
||||||
self.app.processEvents(QEventLoop.ExcludeUserInputEvents)
|
self.app.processEvents()
|
||||||
self._updating = False
|
self._updating = False
|
||||||
self._lastUpdate = time.time()
|
self._lastUpdate = time.time()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue