[welcome] Simplify logic
- \not mandatorySatisfied \implies \not requirementsSatisfied, so the ifs can be combined and simplified
This commit is contained in:
parent
28d91979c3
commit
221a79b64c
@ -215,9 +215,9 @@ ResultsListWidget::ResultsListWidget( QWidget* parent, const Calamares::Requirem
|
||||
"might be disabled." );
|
||||
m_explanation->setText( message.arg( *Calamares::Branding::ShortVersionedName ) ); )
|
||||
}
|
||||
mainLayout->addStretch();
|
||||
}
|
||||
|
||||
if ( requirementsSatisfied && mandatorySatisfied )
|
||||
else
|
||||
{
|
||||
if ( !Calamares::Branding::instance()->imagePath( Calamares::Branding::ProductWelcome ).isEmpty() )
|
||||
{
|
||||
@ -249,10 +249,6 @@ ResultsListWidget::ResultsListWidget( QWidget* parent, const Calamares::Requirem
|
||||
.arg( *Calamares::Branding::ProductName ) );
|
||||
m_explanation->setAlignment( Qt::AlignCenter ); )
|
||||
}
|
||||
else
|
||||
{
|
||||
mainLayout->addStretch();
|
||||
}
|
||||
|
||||
CALAMARES_RETRANSLATE_SLOT( &ResultsListWidget::retranslate )
|
||||
retranslate();
|
||||
|
Loading…
Reference in New Issue
Block a user