Main window: Fix progress bar when thumbnailing

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