mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix job count in the spinner not always being updated when a job completes
This commit is contained in:
parent
b72ab4aa7e
commit
7aa502ec87
@ -169,11 +169,11 @@ class JobManager(QAbstractTableModel): # {{{
|
||||
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…
x
Reference in New Issue
Block a user