fix: 超时错误

This commit is contained in:
2022-10-09 18:36:22 +08:00
parent 5e501b9d17
commit 967f62f825
3 changed files with 7 additions and 7 deletions

View File

@@ -1128,11 +1128,11 @@ void Widget::on_pushButton_uninstall_clicked()
QProcess uninstall;
uninstall.start("pkexec", QStringList() << "apt" << "purge" << "-y" << pkgName.toLower());
uninstall.waitForFinished();
uninstall.waitForFinished(180); // 默认超时 3 分钟
QProcess check;
check.start("dpkg", QStringList() << "-s" << pkgName.toLower());
check.waitForFinished();
check.waitForFinished(180); // 默认超时 3 分钟
if (check.readAllStandardOutput().isEmpty())
{