mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-08-08 13:42:21 +08:00
commit
c529367998
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1,3 @@
|
||||
spark-store.pro.user*
|
||||
build/
|
||||
.vscode/
|
@ -224,7 +224,7 @@ void SpkAppInfoLoaderThread::run()
|
||||
```
|
||||
|
||||
|
||||
**应用下载**
|
||||
**应用下载**
|
||||
Widget::on_pushButton_download_clicked() 是点击下载的安装方法。
|
||||
最终使用的是 `QNetwrokAccessManager` 进行GET请求获取数据写入文件。
|
||||
```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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user