Code spaghetti and more chaos

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97 2024-01-27 22:47:28 +02:00
parent 4cd236ed80
commit 7317105e4d
No known key found for this signature in database
GPG key ID: 55EF5DA53DB36318
21 changed files with 613 additions and 391 deletions

View file

@ -43,7 +43,7 @@ void ArchiveJavaDownloader::executeTask()
if (m_checksum_type == "sha256") {
hashType = QCryptographicHash::Algorithm::Sha256;
}
action->addValidator(new Net::ChecksumValidator(hashType, m_checksum_hash.toLatin1()));
action->addValidator(new Net::ChecksumValidator(hashType, QByteArray::fromHex(m_checksum_hash.toUtf8())));
}
download->addNetAction(action);
auto fullPath = entry->getFullPath();