| 2007 | } |
| 2008 | |
| 2009 | bool 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 | |
| 2022 | void IGFD::FileManager::ClearFileLists() { |
| 2023 | m_FilteredFileList.clear(); |