mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-18 18:11:37 +08:00
下载完成后自动更改按钮文案
This commit is contained in:
@@ -96,6 +96,11 @@ void DownloadListWidget::addItem(QString name,QString fileName,QString pkgName,c
|
||||
}
|
||||
}
|
||||
|
||||
QList<DownloadItem *> DownloadListWidget::getDIList()
|
||||
{
|
||||
return downloaditemlist;
|
||||
}
|
||||
|
||||
void DownloadListWidget::startRequest(QUrl url, QString fileName)
|
||||
{
|
||||
ui->listWidget->show();
|
||||
@@ -117,6 +122,7 @@ void DownloadListWidget::httpFinished() // 完成下载
|
||||
isBusy = false;
|
||||
downloaditemlist[nowDownload - 1]->readyInstall();
|
||||
downloaditemlist[nowDownload - 1]->free = true;
|
||||
emit downloadFinished();
|
||||
if(nowDownload < allDownload)
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user