!44 多线程下载前验证源的有效性

* readme: 修正 ubuntu 的编译说明
* download: 检查软件源的有效性/异步
* download: 检查软件源的有效性
This commit is contained in:
2022-06-26 12:09:16 +00:00
committed by shenmo
parent af7990e069
commit ac0a38e670
3 changed files with 22 additions and 4 deletions

View File

@@ -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);});