mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-07-15 10:02:21 +08:00
添加多个通知,修复下载进度条过长问题
This commit is contained in:
parent
ff84576aab
commit
0fea4c13ef
@ -319,7 +319,7 @@ void AppIntoPage::on_pushButton_3_clicked()
|
||||
ui->pushButton_3->hide();
|
||||
|
||||
updatesEnabled();
|
||||
//sendNotification(tr("Uninstall succeeded"));
|
||||
Utils::sendNotification("spark-store",tr("Spark Store"),tr("Uninstall succeeded"));
|
||||
}
|
||||
|
||||
ui->downloadButton->setEnabled(true);
|
||||
|
@ -8,6 +8,7 @@
|
||||
#include <QSettings>
|
||||
#include <QtConcurrent>
|
||||
#include "../backend/sparkapi.h"
|
||||
#include "utils/utils.h"
|
||||
#define TMP_PATH "/tmp/spark-store"
|
||||
|
||||
namespace Ui {
|
||||
|
@ -125,6 +125,7 @@ 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)
|
||||
{
|
||||
|
@ -9,7 +9,7 @@
|
||||
#include "widgets/common/downloaditem.h"
|
||||
#include "backend/sparkapi.h"
|
||||
#include "backend/downloadworker.h"
|
||||
|
||||
#include "utils/utils.h"
|
||||
DWIDGET_USE_NAMESPACE
|
||||
namespace Ui {
|
||||
class DownloadListWidget;
|
||||
|
Loading…
x
Reference in New Issue
Block a user