mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-13 20:32:05 +08:00
fix:点击取消下载 仍然会有系统通知提示下载完毕
This commit is contained in:
@@ -59,6 +59,7 @@ void DownloadItem::readyInstall()
|
||||
{
|
||||
if(!close)
|
||||
{
|
||||
Utils::sendNotification("spark-store",tr("Spark Store"),tr("The download is complete."));
|
||||
ui->progressBar->hide();
|
||||
ui->pushButton_install->setEnabled(true);
|
||||
ui->pushButton_install->show();
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include <QTextBrowser>
|
||||
#include <QMenu>
|
||||
#include <QAction>
|
||||
|
||||
#include "utils/utils.h"
|
||||
#include <DDialog>
|
||||
DWIDGET_USE_NAMESPACE
|
||||
|
||||
|
||||
@@ -125,7 +125,6 @@ void DownloadListWidget::httpFinished() // 完成下载
|
||||
isBusy = false;
|
||||
downloaditemlist[nowDownload - 1]->readyInstall();
|
||||
downloaditemlist[nowDownload - 1]->free = true;
|
||||
Utils::sendNotification("spark-store",tr("Spark Store"),tr("The download is complete. Please click the download button on the title Bar to open the download list for installation"));
|
||||
emit downloadFinished();
|
||||
if(nowDownload < allDownload)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user