diff --git a/companion/src/process_flash.cpp b/companion/src/process_flash.cpp index 44671ee82..75c1561d0 100755 --- a/companion/src/process_flash.cpp +++ b/companion/src/process_flash.cpp @@ -278,11 +278,10 @@ void FlashProcess::onFinished(int code=0) progress->setInfo(tr("Flashing done with errors")); else progress->setInfo(tr("Flashing done")); - progress->addSeparator(); - if(lfuse || hfuse || efuse) { addReadFuses(); } + progress->setValue(progress->maximum()); progress->lock(false); emit finished(); } diff --git a/companion/src/progresswidget.cpp b/companion/src/progresswidget.cpp index b3cd65eca..10484a69a 100755 --- a/companion/src/progresswidget.cpp +++ b/companion/src/progresswidget.cpp @@ -46,6 +46,11 @@ void ProgressWidget::setMaximum(int value) ui->progressBar->setMaximum(value); } +int ProgressWidget::maximum() +{ + return ui->progressBar->maximum(); +} + void ProgressWidget::setValue(int value) { ui->progressBar->setValue(value); diff --git a/companion/src/progresswidget.h b/companion/src/progresswidget.h index 73d8f7bf4..392511f4e 100755 --- a/companion/src/progresswidget.h +++ b/companion/src/progresswidget.h @@ -18,6 +18,7 @@ class ProgressWidget : public QWidget void addText(const QString &text); void setInfo(const QString &text); void setMaximum(int value); + int maximum(); void setValue(int value); void setProgressColor(const QColor &color); void addSeparator();