diff --git a/.gitignore b/.gitignore index 4fa3a07..18b01f0 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ spark-store.pro.user* +build/ +.vscode/ \ No newline at end of file diff --git a/README.md b/README.md index 6da7c5f..2b97773 100644 --- a/README.md +++ b/README.md @@ -224,7 +224,7 @@ void SpkAppInfoLoaderThread::run() ``` -**应用下载** +**应用下载** Widget::on_pushButton_download_clicked() 是点击下载的安装方法。 最终使用的是 `QNetwrokAccessManager` 进行GET请求获取数据写入文件。 ```cpp diff --git a/widget.cpp b/widget.cpp index 2d0c759..962b5a8 100644 --- a/widget.cpp +++ b/widget.cpp @@ -988,7 +988,7 @@ void Widget::on_pushButton_uninstall_clicked() ui->pushButton_download->setEnabled(false); ui->pushButton_uninstall->setEnabled(false); QProcess uninstall; - uninstall.start("pkexec apt purge -y "+pkgName); + uninstall.start("pkexec apt purge -y "+pkgName.toLower()); uninstall.waitForFinished(); ui->pushButton_download->setEnabled(true); ui->pushButton_download->setText("Install");