mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 23:53:27 +02:00
Fix job count in the spinner not always being updated when a job completes
This commit is contained in:
parent
b72ab4aa7e
commit
7aa502ec87
1 changed files with 2 additions and 2 deletions
|
|
@ -169,11 +169,11 @@ def _update(self):
|
|||
job.update()
|
||||
if orig_state != job.run_state:
|
||||
needs_reset = True
|
||||
if job.is_finished:
|
||||
self.job_done.emit(len(self.unfinished_jobs()))
|
||||
if needs_reset:
|
||||
self.jobs.sort()
|
||||
self.reset()
|
||||
if job.is_finished:
|
||||
self.job_done.emit(len(self.unfinished_jobs()))
|
||||
else:
|
||||
for job in jobs:
|
||||
idx = self.jobs.index(job)
|
||||
|
|
|
|||
Loading…
Reference in a new issue