diff --git a/.gitignore b/.gitignore index 4fa3a0761e0c722bdbd4dfa98cb19ecabb3143ea..18b01f0349b4c4ee034a9fbf53f47058a66a297c 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 6da7c5fdcca4767ee735100d5b8f0c95e14feb8d..2b97773f80183edf1a8d6b6014b508287117404e 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 2d0c7593026383af8e1a19f29ff2e79a88c60463..962b5a850e0f83b197329c4e9267df594b1f4212 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");