Scan: When setting the source, make sure the value is valid first.
Some scanners, like the Brother DCP-8025D, don't like it when we set a non-valid value (for instance 'Auto' ...)

Signed-off-by: Jerome Flesch <jflesch@gmail.com>
Main window: make sure the signal 'index-loading-end' is not emitted twice (bis)

Signed-off-by: Jerome Flesch <jflesch@gmail.com>
Frontend/jobs: When stopping a scheduler, don't hesitate to stop the active job. Otherwise quitting Paperwork may take a very long time

Signed-off-by: Jerome Flesch <jflesch@gmail.com>
Main window: Remove 0.5s wait time before generating thumbnails

Signed-off-by: Jerome Flesch <jflesch@gmail.com>
Main window: Drop the wait time on the imgbuilder as well

Signed-off-by: Jerome Flesch <jflesch@gmail.com>
Main window: Also remove the wait time on the BoxRefresher (not the box selector !)

Signed-off-by: Jerome Flesch <jflesch@gmail.com>
Jobs: stop correctly jobs that have already been started once

Signed-off-by: Jerome Flesch <jflesch@wyplay.com>
Jobs: no need to wait for the active job to end. It actually just makes things more painful

Signed-off-by: Jerome Flesch <jflesch@wyplay.com>
JobIndexUpdater: the timeout of 1s on condition.wait() is too short, and if things go really wrong if it expires --> remove the timeout

Signed-off-by: Jerome Flesch <jflesch@wyplay.com>
JobIndexUpdater: Fix progression indication

Signed-off-by: Jerome Flesch <jflesch@wyplay.com>
Main window: Make sure all the signals from jobs are handled using GObject.idle_add(). Otherwise we risk thread-safety issues with Gtk

Signed-off-by: Jerome Flesch <jflesch@wyplay.com>
Main window: make sure the signals 'img-building-result-xxx' and 'page-thumbnailing-end' are never emitted twice for a same job

Signed-off-by: Jerome Flesch <jflesch@wyplay.com>
Main window: don't lock the search while updating the index. There is no point

Signed-off-by: Jerome Flesch <jflesch@wyplay.com>
Main window: Index update: Fix progression (again)

Signed-off-by: Jerome Flesch <jflesch@wyplay.com>
Jobs: prevent multiple re-queueing of the active job

Signed-off-by: Jerome Flesch <jflesch@wyplay.com>
Main window: When the image area is resized, don't drop the previous image until the new one is ready

Signed-off-by: Jerome Flesch <jflesch@wyplay.com>
Main window: JobImgBuilder: cleanup

Signed-off-by: Jerome Flesch <jflesch@wyplay.com>
Backend: PDF documents: Fix export as a PDF (aka copy)

Signed-off-by: Jerome Flesch <jflesch@wyplay.com>