MCPcopy Create free account
hub / github.com/aiekick/ImGuiFileDialog / m_CompleteFileInfosWithUserFileAttirbutes

Method m_CompleteFileInfosWithUserFileAttirbutes

ImGuiFileDialog.cpp:2009–2020  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2007}
2008
2009bool IGFD::FileManager::m_CompleteFileInfosWithUserFileAttirbutes(const FileDialogInternal& vFileDialogInternal, const std::shared_ptr<FileInfos>& vInfos) {
2010 if (vFileDialogInternal.getDialogConfig().userFileAttributes != nullptr) {
2011 if (!vFileDialogInternal.getDialogConfig().userFileAttributes(vInfos.get(), vFileDialogInternal.getDialogConfig().userDatas)) {
2012 return false; // the file will be ignored, so not added to the file list, so not displayed
2013 } else {
2014 if (!vInfos->fileType.isDir()) {
2015 vInfos->formatedFileSize = IGFD::Utils::FormatFileSize(vInfos->fileSize);
2016 }
2017 }
2018 }
2019 return true; // file will be added to file list, so displayed
2020}
2021
2022void IGFD::FileManager::ClearFileLists() {
2023 m_FilteredFileList.clear();

Callers

nothing calls this directly

Calls 1

isDirMethod · 0.80

Tested by

no test coverage detected