optimized test

This commit is contained in:
arm64v8a
2023-02-15 17:03:05 +09:00
parent e88021eb88
commit 705e9e0152
7 changed files with 38 additions and 31 deletions

View File

@@ -131,11 +131,13 @@ void MainWindow::speedtest_current_group(int mode) {
profile->full_test_report = result.full_report().c_str();
profile->Save();
runOnUiThread([=] {
if (!result.error().empty()) {
show_log_impl(tr("[%1] test error: %2").arg(profile->bean->DisplayTypeAndName(), result.error().c_str()));
}
refresh_proxy_list(profile->id);
if (!result.error().empty()) {
MW_show_log(tr("[%1] test error: %2").arg(profile->bean->DisplayTypeAndName(), result.error().c_str()));
}
auto profileId = profile->id;
runOnUiThread([this, profileId] {
refresh_proxy_list(profileId);
});
}
});