Merge pull request #2376 from ArrayBolt3/calamares
Partition module fixes for encryption checkbox
This commit is contained in:
commit
1814b7fd41
@ -1031,9 +1031,10 @@ ChoicePage::updateActionChoicePreview( InstallChoice choice )
|
||||
if ( m_enableEncryptionWidget )
|
||||
{
|
||||
m_encryptWidget->show();
|
||||
if ( m_config->preCheckEncryption() )
|
||||
if ( m_config->preCheckEncryption() && ! m_preCheckActivated )
|
||||
{
|
||||
m_encryptWidget->setEncryptionCheckbox( true );
|
||||
m_preCheckActivated = true;
|
||||
}
|
||||
}
|
||||
m_previewBeforeLabel->setText( tr( "Current:", "@label" ) );
|
||||
@ -1090,9 +1091,10 @@ ChoicePage::updateActionChoicePreview( InstallChoice choice )
|
||||
if ( shouldShowEncryptWidget( choice ) )
|
||||
{
|
||||
m_encryptWidget->show();
|
||||
if ( m_config->preCheckEncryption() )
|
||||
if ( m_config->preCheckEncryption() && ! m_preCheckActivated )
|
||||
{
|
||||
m_encryptWidget->setEncryptionCheckbox( true );
|
||||
m_preCheckActivated = true;
|
||||
}
|
||||
}
|
||||
m_previewBeforeLabel->setText( tr( "Current:", "@label" ) );
|
||||
|
@ -173,6 +173,7 @@ private:
|
||||
QString m_osproberOneEntryName;
|
||||
|
||||
bool m_enableEncryptionWidget = false;
|
||||
bool m_preCheckActivated = false;
|
||||
|
||||
QMutex m_coreMutex;
|
||||
};
|
||||
|
@ -184,13 +184,10 @@ EncryptWidget::updateState( const bool notify )
|
||||
|
||||
Encryption newState = state();
|
||||
|
||||
if ( newState != m_state )
|
||||
m_state = newState;
|
||||
if ( notify )
|
||||
{
|
||||
m_state = newState;
|
||||
if ( notify )
|
||||
{
|
||||
Q_EMIT stateChanged( m_state );
|
||||
}
|
||||
Q_EMIT stateChanged( m_state );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user