| 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) { |
nothing calls this directly
no outgoing calls
no test coverage detected