Optimized thumbnail generation: If the image was not edited yet anyway, only the (fast) raw internal preview image is taken. So if you just downloaded the many pictures from the camera, your machine will not busy generating thumbnails.
This commit is contained in:
@@ -81,9 +81,9 @@ void FileBrowserEntry::refreshThumbnailImage () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void FileBrowserEntry::refreshQuickThumbnailImage () {
|
void FileBrowserEntry::refreshQuickThumbnailImage () {
|
||||||
|
// Only make a (slow) processed preview if the picture has been edited at all
|
||||||
if ( thumbnail &&
|
if ( thumbnail &&
|
||||||
thumbnail->isQuick() )
|
thumbnail->isQuick() && thumbnail->isPParamsValid() )
|
||||||
{
|
{
|
||||||
thumbImageUpdater->add(thumbnail, thumbnail->getProcParams(), preh, &updatepriority, true, this);
|
thumbImageUpdater->add(thumbnail, thumbnail->getProcParams(), preh, &updatepriority, true, this);
|
||||||
}
|
}
|
||||||
|
@@ -85,6 +85,7 @@ class Thumbnail {
|
|||||||
void loadProcParams ();
|
void loadProcParams ();
|
||||||
|
|
||||||
bool isQuick() { return quick_; }
|
bool isQuick() { return quick_; }
|
||||||
|
bool isPParamsValid() { return pparamsValid; }
|
||||||
bool isRecentlySaved ();
|
bool isRecentlySaved ();
|
||||||
void imageDeveloped ();
|
void imageDeveloped ();
|
||||||
void imageEnqueued ();
|
void imageEnqueued ();
|
||||||
|
Reference in New Issue
Block a user