aboutsummaryrefslogtreecommitdiff
path: root/src/qt/mainwindow.cpp
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2022-06-17 17:30:46 +0200
committerJan200101 <sentrycraft123@gmail.com>2022-06-17 17:30:46 +0200
commitd425f9b49ad4f0b93830ac81a89df81abcec6a6f (patch)
tree776d134400648360e936dfdcb01cbae6a878ce2f /src/qt/mainwindow.cpp
parent8b6944d4e42dc42b7833a335c8af990e5a5bcc2b (diff)
downloadOFQT-d425f9b49ad4f0b93830ac81a89df81abcec6a6f.tar.gz
OFQT-d425f9b49ad4f0b93830ac81a89df81abcec6a6f.zip
give each thread a string, require UI Thread to clear string to progress
Diffstat (limited to 'src/qt/mainwindow.cpp')
-rw-r--r--src/qt/mainwindow.cpp3
1 files changed, 2 insertions, 1 deletions
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);
}