[partition] Always update EncryptWidget's m_state when updateState is called

This commit is contained in:
Aaron Rainbolt 2024-09-25 18:01:54 -05:00
parent cbe39e1324
commit cc96e65787
No known key found for this signature in database
GPG Key ID: A709160D73C79109

View File

@ -184,13 +184,10 @@ EncryptWidget::updateState( const bool notify )
Encryption newState = state(); Encryption newState = state();
if ( newState != m_state ) m_state = newState;
if ( notify )
{ {
m_state = newState; Q_EMIT stateChanged( m_state );
if ( notify )
{
Q_EMIT stateChanged( m_state );
}
} }
} }