mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 19:05:46 -05:00
[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
1 changed files with 2 additions and 6 deletions
|
@ -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…
Add table
Reference in a new issue