update src/widget.cpp.

Signed-off-by: shenmo <jifengshenmo@outlook.com>
This commit is contained in:
shenmo 2022-10-09 10:41:48 +00:00 committed by Gitee
parent 4d7e766d75
commit 8c08b7e995
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1128,7 +1128,7 @@ void Widget::on_pushButton_uninstall_clicked()
QProcess uninstall;
uninstall.start("pkexec", QStringList() << "apt" << "purge" << "-y" << pkgName.toLower());
uninstall.waitForFinished(180); // 默认超时 3 分钟
uninstall.waitForFinished(-1); // 默认无限时长
QProcess check;
check.start("dpkg", QStringList() << "-s" << pkgName.toLower());