SpaceFile: Tweak thumbnail to avoid restarting the job needlessly.

This commit is contained in:
Bastien Montagne
2014-12-31 20:45:39 +01:00
parent 950f2c84a3
commit 46bce66805
3 changed files with 21 additions and 3 deletions

View File

@@ -218,7 +218,7 @@ static void file_refresh(const bContext *C, ScrArea *UNUSED(sa))
filelist_sort(sfile->files);
}
if ((params->display == FILE_IMGDISPLAY)) {
if ((params->display == FILE_IMGDISPLAY) && filelist_need_thumbnails(sfile->files)) {
if (!thumbnails_running(wm, sfile->files)) {
thumbnails_start(sfile->files, C);
}