[libcalamaresui] Remove duplicate setEnabled

- If executing is set to true, then later setEnabled( !executing && ... )
   fill be false, so we don't need to call setEnabled( false ) here as well.
This commit is contained in:
Adriaan de Groot 2019-05-14 13:10:36 +02:00
parent 5868657101
commit 25099ae854

View File

@ -281,12 +281,8 @@ ViewManager::next()
executing = qobject_cast< ExecutionViewStep* >( m_steps.at( m_currentStep ) ) != nullptr;
emit currentStepChanged();
if ( executing )
{
m_back->setEnabled( false );
m_next->setEnabled( false );
// Enabled if there's nothing blocking it during exec
m_quit->setEnabled( !( settings->dontCancel() || settings->disableCancel() ) );
}
else
// Enabled unless it's also hidden
m_quit->setEnabled( !settings->disableCancel() );