diff --git a/nekoray_version.txt b/nekoray_version.txt index 7f61c7f8c..789831d23 100644 --- a/nekoray_version.txt +++ b/nekoray_version.txt @@ -1 +1 @@ -3.1-2023-05-17 +3.2-2023-05-18 diff --git a/ui/mainwindow_grpc.cpp b/ui/mainwindow_grpc.cpp index a02cd3b61..1c3f3e17f 100644 --- a/ui/mainwindow_grpc.cpp +++ b/ui/mainwindow_grpc.cpp @@ -178,6 +178,16 @@ void MainWindow::speedtest_current() { } else if (latency > 0) { ui->label_running->setText(tr("Test Result") + ": " + QString("%1 ms").arg(latency)); } + // + auto t = new QTimer(this); + connect(t, &QTimer::timeout, this, [=] { + last_test_time = QTime(); + refresh_status(); + t->deleteLater(); + }); + t->setInterval(1000); + t->setSingleShot(true); + t->start(); }); }); #endif