Add detector names and display them in the progress bar

This commit is contained in:
Adam Honse
2020-08-06 15:18:32 -05:00
parent 75899f973b
commit f716a05947
50 changed files with 80 additions and 56 deletions

View File

@@ -417,6 +417,9 @@ void OpenRGBDialog2::on_ClientListUpdated()
ui->DetectionProgressBar->setRange(0, 100);
ui->DetectionProgressBar->setValue(ResourceManager::get()->GetDetectionPercent());
ui->DetectionProgressBar->setTextVisible(true);
ui->DetectionProgressBar->setFormat("Detecting " + QString::fromStdString(ResourceManager::get()->GetDetectionString()));
ui->DetectionProgressBar->setAlignment(Qt::AlignCenter);
if(ResourceManager::get()->GetDetectionPercent() == 100)
{