mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-09-03 01:42:20 +08:00
!56 修复下载提前退出
* 修改: src/main.cpp * 修改: debian/changelog * fix: waitforfinished
This commit is contained in:
parent
198384c552
commit
0dc594b3f1
8
debian/changelog
vendored
8
debian/changelog
vendored
@ -1,3 +1,11 @@
|
|||||||
|
spark-store (3.1.3-1) stable; urgency=medium
|
||||||
|
|
||||||
|
* 修复 下载提前退出
|
||||||
|
* 移除 下载量显示
|
||||||
|
|
||||||
|
|
||||||
|
-- shenmo <shenmo@spark-app.store> Fri, 30 Jan 2022 00:00:00 +0800
|
||||||
|
|
||||||
spark-store (3.1.3) stable; urgency=medium
|
spark-store (3.1.3) stable; urgency=medium
|
||||||
|
|
||||||
* Now uses aria2 to download softwares form all mirrors
|
* Now uses aria2 to download softwares form all mirrors
|
||||||
|
@ -176,11 +176,9 @@ void DownloadController::startDownload(const QString &url)
|
|||||||
|
|
||||||
auto pidNumber = cmd->processId();
|
auto pidNumber = cmd->processId();
|
||||||
this->pidNumber = pidNumber;
|
this->pidNumber = pidNumber;
|
||||||
int statusSum = 0;
|
while (cmd->waitForFinished(-1))
|
||||||
while (statusSum > -20)
|
|
||||||
{
|
{
|
||||||
auto status = cmd->waitForFinished() - 1;
|
continue;
|
||||||
statusSum += status;
|
|
||||||
}
|
}
|
||||||
emit downloadFinished();
|
emit downloadFinished();
|
||||||
});
|
});
|
||||||
|
@ -30,7 +30,7 @@ int main(int argc, char *argv[])
|
|||||||
DAboutDialog dialog;
|
DAboutDialog dialog;
|
||||||
a.setAboutDialog(&dialog);
|
a.setAboutDialog(&dialog);
|
||||||
dialog.setLicense(QObject::tr("We publish this program under GPL V3"));
|
dialog.setLicense(QObject::tr("We publish this program under GPL V3"));
|
||||||
dialog.setVersion(DApplication::buildVersion("Version 3.1.3"));
|
dialog.setVersion(DApplication::buildVersion("Version 3.1.3-1"));
|
||||||
dialog.setProductIcon(QIcon::fromTheme("spark-store")); // 设置Logo
|
dialog.setProductIcon(QIcon::fromTheme("spark-store")); // 设置Logo
|
||||||
dialog.setProductName(QLabel::tr("Spark Store"));
|
dialog.setProductName(QLabel::tr("Spark Store"));
|
||||||
dialog.setDescription(
|
dialog.setDescription(
|
||||||
@ -51,7 +51,7 @@ int main(int argc, char *argv[])
|
|||||||
a.setOrganizationName("spark-union");
|
a.setOrganizationName("spark-union");
|
||||||
a.setOrganizationDomain("https://www.deepinos.org/");
|
a.setOrganizationDomain("https://www.deepinos.org/");
|
||||||
a.setApplicationName("Spark Store"); //不需要翻译,否则 ~/.local/share/ 下文件夹名称也被翻译为中文
|
a.setApplicationName("Spark Store"); //不需要翻译,否则 ~/.local/share/ 下文件夹名称也被翻译为中文
|
||||||
a.setApplicationVersion(DApplication::buildVersion("3.2"));
|
a.setApplicationVersion(DApplication::buildVersion("3.1.3-1"));
|
||||||
a.setApplicationAcknowledgementPage("https://gitee.com/deepin-community-store/spark-store");
|
a.setApplicationAcknowledgementPage("https://gitee.com/deepin-community-store/spark-store");
|
||||||
a.setApplicationDescription(
|
a.setApplicationDescription(
|
||||||
QObject::tr(
|
QObject::tr(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user