added green color for files being hashed

This commit is contained in:
csoler 2024-03-13 22:20:21 +01:00
parent 7ef81a37ff
commit 0697116289
4 changed files with 61 additions and 17 deletions

View file

@ -146,7 +146,7 @@ static QString purifyFileName(const QString& input,bool& bad)
void RsCollection::merge_in(const QString& fname,uint64_t size,const RsFileHash& hash)
{
mFileTree->addFile(mFileTree->root(),fname.toStdString(),hash,size);
mHashes[hash]= mFileTree->addFile(mFileTree->root(),fname.toStdString(),hash,size);
#ifdef TO_REMOVE
ColFileInfo info ;
info.type = DIR_TYPE_FILE ;
@ -167,7 +167,7 @@ void RsCollection::recursMergeTree(RsFileTree::DirIndex parent,const RsFileTree&
for(uint32_t i=0;i<dd.subfiles.size();++i)
{
const RsFileTree::FileData& fd(tree.fileData(dd.subfiles[i]));
mFileTree->addFile(parent,fd.name,fd.hash,fd.size);
mHashes[fd.hash] = mFileTree->addFile(parent,fd.name,fd.hash,fd.size);
}
for(uint32_t i=0;i<dd.subdirs.size();++i)
{
@ -672,3 +672,5 @@ void RsCollection::saveColl(std::vector<ColFileInfo> colFileInfos, const QString
}
#endif