From d425f9b49ad4f0b93830ac81a89df81abcec6a6f Mon Sep 17 00:00:00 2001 From: Jan200101 Date: Fri, 17 Jun 2022 17:30:46 +0200 Subject: give each thread a string, require UI Thread to clear string to progress --- src/qt/mainwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/qt/mainwindow.cpp') diff --git a/src/qt/mainwindow.cpp b/src/qt/mainwindow.cpp index 35151ca..9d1ea85 100644 --- a/src/qt/mainwindow.cpp +++ b/src/qt/mainwindow.cpp @@ -97,6 +97,7 @@ void MainWindow::workerResult(const enum Worker::Results_t& result) case Worker::RESULT_UPDATE_TEXT: ui->progressBar->setValue(worker->progress); ui->infoLabel->setText(worker->infoText); + worker->infoText.clear(); break; case Worker::RESULT_IS_INSTALLED: @@ -233,7 +234,7 @@ void MainWindow::openWebsite() void MainWindow::resetProgress() { - ui->progressBar->setFormat(""); + ui->progressBar->setFormat("%p%"); ui->progressBar->setValue(-1); } -- cgit v1.2.3