[libcalamaresui] Update progress message only if it is non-empty
This improves the situation for jobs that do not provide a status: their blank status does not overwrite the status bar, and since (previous commit) the description or name is used to start the job if the status is empty, at least **something** is displayed. SEE #1528
This commit is contained in:
parent
86fd014bbd
commit
21598ef4b3
@ -191,7 +191,10 @@ void
|
|||||||
ExecutionViewStep::updateFromJobQueue( qreal percent, const QString& message )
|
ExecutionViewStep::updateFromJobQueue( qreal percent, const QString& message )
|
||||||
{
|
{
|
||||||
m_progressBar->setValue( int( percent * m_progressBar->maximum() ) );
|
m_progressBar->setValue( int( percent * m_progressBar->maximum() ) );
|
||||||
m_label->setText( message );
|
if ( !message.isEmpty() )
|
||||||
|
{
|
||||||
|
m_label->setText( message );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user