| 1378 | } |
| 1379 | |
| 1380 | void FileSystemActor::refreshThumbnail() |
| 1381 | { |
| 1382 | if (winOS->IsFileInUse(getFullPath())) |
| 1383 | return; |
| 1384 | |
| 1385 | if (isThumbnailized()) |
| 1386 | { |
| 1387 | Widget * w = widgetManager->getActiveWidgetForFile(getFullPath()); |
| 1388 | if (w) |
| 1389 | loadThumbnailTexture(GLTextureObject(Load|Reload, _alternateThumbnailId, filePath, HiResImage, NormalPriority)); |
| 1390 | else |
| 1391 | loadThumbnailTexture(GLTextureObject(Load|Compress, _alternateThumbnailId, getTargetPath(), getMinThumbnailDetail(), NormalPriority)); |
| 1392 | } |
| 1393 | else |
| 1394 | loadThumbnailTexture(GLTextureObject(Load|Reload, textureID, getTargetPath(), FileIcon, NormalPriority)); |
| 1395 | } |
| 1396 | |
| 1397 | |
| 1398 |
no test coverage detected