mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-07-14 17:42:21 +08:00
fix:应用商店退出时,aria2c仍然在运行
This commit is contained in:
parent
eb00159691
commit
922cb6a34f
src
@ -138,7 +138,7 @@ void DownloadController::startDownload(const QString &url)
|
||||
command.append(aria2NoSeeds.toUtf8());
|
||||
}
|
||||
qDebug() << command;
|
||||
auto cmd = new QProcess();
|
||||
auto cmd = new QProcess(this);
|
||||
cmd->setProcessChannelMode(QProcess::MergedChannels);
|
||||
cmd->setProgram("aria2c");
|
||||
cmd->setArguments(command);
|
||||
|
@ -37,7 +37,6 @@ private:
|
||||
{
|
||||
normal,
|
||||
hover,
|
||||
fromRoundedCornersToRounded,//从圆角变成圆形
|
||||
openProgress,
|
||||
closeProgress,
|
||||
recovery
|
||||
|
@ -51,6 +51,8 @@ DownloadListWidget::DownloadListWidget(QWidget *parent) :
|
||||
|
||||
DownloadListWidget::~DownloadListWidget()
|
||||
{
|
||||
downloadController->stopDownload();
|
||||
delete downloadController;
|
||||
delete ui;
|
||||
}
|
||||
void DownloadListWidget::clearItem()
|
||||
|
Loading…
x
Reference in New Issue
Block a user