Fix decompress result to calling function

This commit is contained in:
elecpower
2022-09-06 09:29:41 +10:00
committed by Peter Feerick
parent 5a9b5bfc23
commit 8d99c66491
+2 -4
View File
@@ -949,9 +949,7 @@ bool UpdateInterface::decompressAsset(int row)
progressMessage(tr("Decompressing %1").arg(filename));
reportProgress(tr("Decompress: %1").arg(filename), QtInfoMsg);
decompressArchive(f.absoluteFilePath(), QString("%1/A%2").arg(decompressDir).arg(assets->id()));
return true;
return decompressArchive(f.absoluteFilePath(), QString("%1/A%2").arg(decompressDir).arg(assets->id()));
}
bool UpdateInterface::decompressArchive(const QString & archivePath, const QString & destDir)
@@ -966,7 +964,7 @@ bool UpdateInterface::decompressArchive(const QString & archivePath, const QStri
MinizInterface mIface(progress, MinizInterface::PCM_SIZE, logLevel);
if (!mIface.unzipArchiveToPath(archivePath, dest)) {
criticalMsg(tr("Failed to decompress %1").arg(archivePath));
reportProgress(tr("Failed to decompress %1").arg(archivePath), QtCriticalMsg);
return false;
}