mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Improved the job dispatch system. Now after a job has completed, it remains in the list and you can view any output from it, by double clicking the list entry.
This commit is contained in:
parent
536a4eaf00
commit
d46b168871
@ -151,13 +151,10 @@ class JobManager(QAbstractTableModel):
|
|||||||
|
|
||||||
def terminate_device_jobs(self):
|
def terminate_device_jobs(self):
|
||||||
changed = False
|
changed = False
|
||||||
for key in self.jobs.keys():
|
for job in self.running_jobs:
|
||||||
if isinstance(self.jobs[key], DeviceJob):
|
if isinstance(job, DeviceJob):
|
||||||
changed = True
|
|
||||||
job = self.jobs.pop(key)
|
|
||||||
job.terminate()
|
job.terminate()
|
||||||
if changed:
|
|
||||||
self.reset()
|
|
||||||
|
|
||||||
def timerEvent(self, event):
|
def timerEvent(self, event):
|
||||||
if event.timerId() == self.timer_id:
|
if event.timerId() == self.timer_id:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user