fix: 修复安装失败判断条件错误问题

原始判断条件将 QString 和 bool 类型函数返回值进行比较,可能存在问题
Qt5 中比较结果始终为 false,不会认为安装失败

Log: 判断输出包含 "OMG-IT-GOES-WRONG" 关键词则认为安装失败
This commit is contained in:
zty199 2024-06-21 09:07:16 +08:00
parent d6bc2a96a7
commit bf8eaf5680

View File

@ -198,7 +198,7 @@ void DownloadItem::slotAsyncInstall(int t)
for (int i = 0; i < everyOut.size(); i++)
{
tempOutput = everyOut[i];
if (everyOut[i].left(2) == tempOutput.contains("OMG-IT-GOES-WRONG"))
if (tempOutput.contains("OMG-IT-GOES-WRONG"))
{
haveError = true;
}