mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-17 17:41:37 +08:00
!44 多线程下载前验证源的有效性
* readme: 修正 ubuntu 的编译说明 * download: 检查软件源的有效性/异步 * download: 检查软件源的有效性
This commit is contained in:
@@ -46,7 +46,12 @@ Widget::Widget(DBlurEffectWidget *parent) :
|
||||
manager = new QNetworkAccessManager(this); // 下载管理
|
||||
|
||||
httpClient = new AeaQt::HttpClient;
|
||||
downloadController = new DownloadController(this); // 并发下载
|
||||
|
||||
QtConcurrent::run([=]()
|
||||
{
|
||||
downloadController = new DownloadController(this); // 并发下载
|
||||
});
|
||||
|
||||
|
||||
connect(ui->menu_main, &QPushButton::clicked, this, [=](){Widget::chooseLeftMenu(0);});
|
||||
connect(ui->menu_network, &QPushButton::clicked, this, [=](){Widget::chooseLeftMenu(1);});
|
||||
|
||||
Reference in New Issue
Block a user