MCPcopy Create free account
hub / github.com/bumptop/BumpTop / refreshThumbnail

Method refreshThumbnail

trunk/win/Source/BT_FileSystemActor.cpp:1380–1395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1378}
1379
1380void 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

Callers 2

onFileModifiedMethod · 0.80
Key_RefreshFileActorsFunction · 0.80

Calls 3

GLTextureObjectClass · 0.85
IsFileInUseMethod · 0.80

Tested by

no test coverage detected