Merge pull request #2376 from ArrayBolt3/calamares

Partition module fixes for encryption checkbox
This commit is contained in:
Adriaan de Groot 2024-10-21 21:34:11 +02:00 committed by GitHub
commit 1814b7fd41
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 8 deletions

View File

@ -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" ) );

View File

@ -173,6 +173,7 @@ private:
QString m_osproberOneEntryName;
bool m_enableEncryptionWidget = false;
bool m_preCheckActivated = false;
QMutex m_coreMutex;
};

View File

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