update build

This commit is contained in:
arm64v8a
2023-01-31 17:24:15 +09:00
parent afa2fc1663
commit 064bd3eaf2
4 changed files with 28 additions and 49 deletions

View File

@@ -41,12 +41,13 @@ void MainWindow::setup_grpc() {
inline bool speedtesting = false;
void MainWindow::speedtest_current_group(int mode) {
if (speedtesting) return;
auto profiles = get_selected_or_group();
if (profiles.isEmpty()) return;
auto group = NekoRay::profileManager->CurrentGroup();
if (group->archive) return;
#ifndef NKR_NO_GRPC
if (speedtesting) return;
QStringList full_test_flags;
if (mode == libcore::FullTest) {
bool ok;
@@ -60,9 +61,8 @@ void MainWindow::speedtest_current_group(int mode) {
full_test_flags = s.trimmed().split(",");
if (!ok) return;
}
speedtesting = true;
#ifndef NKR_NO_GRPC
runOnNewThread([this, profiles, mode, full_test_flags]() {
QMutex lock_write;
QMutex lock_return;