mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
fix progress.update(value=0) to not increment progress (#1998)
This commit is contained in:
parent
3e28605638
commit
a7208601fe
1 changed files with 1 additions and 1 deletions
|
@ -219,7 +219,7 @@ class ProgressManager:
|
||||||
self._max = max or 0
|
self._max = max or 0
|
||||||
self._win.form.progressBar.setMaximum(self._max)
|
self._win.form.progressBar.setMaximum(self._max)
|
||||||
if self._max:
|
if self._max:
|
||||||
self._counter = value or (self._counter + 1)
|
self._counter = value if value is not None else (self._counter + 1)
|
||||||
self._win.form.progressBar.setValue(self._counter)
|
self._win.form.progressBar.setValue(self._counter)
|
||||||
|
|
||||||
def finish(self) -> None:
|
def finish(self) -> None:
|
||||||
|
|
Loading…
Reference in a new issue