MCPcopy Create free account
hub / github.com/dfranx/ImFileDialog / m_clearIconPreview

Method m_clearIconPreview

ImFileDialog.cpp:849–865  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

847 m_clearIconPreview();
848 }
849 void FileDialog::m_clearIconPreview()
850 {
851 m_stopPreviewLoader();
852
853 for (auto& data : m_content) {
854 if (!data.HasIconPreview)
855 continue;
856
857 data.HasIconPreview = false;
858 this->DeleteTexture(data.IconPreview);
859
860 if (data.IconPreviewData != nullptr) {
861 stbi_image_free(data.IconPreviewData);
862 data.IconPreviewData = nullptr;
863 }
864 }
865 }
866 void FileDialog::m_stopPreviewLoader()
867 {
868 if (m_previewLoader != nullptr) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected