[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:
parent
5868657101
commit
25099ae854
@ -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() );
|
||||
|
Loading…
Reference in New Issue
Block a user