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 )
|
if ( m_enableEncryptionWidget )
|
||||||
{
|
{
|
||||||
m_encryptWidget->show();
|
m_encryptWidget->show();
|
||||||
if ( m_config->preCheckEncryption() )
|
if ( m_config->preCheckEncryption() && ! m_preCheckActivated )
|
||||||
{
|
{
|
||||||
m_encryptWidget->setEncryptionCheckbox( true );
|
m_encryptWidget->setEncryptionCheckbox( true );
|
||||||
|
m_preCheckActivated = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
m_previewBeforeLabel->setText( tr( "Current:", "@label" ) );
|
m_previewBeforeLabel->setText( tr( "Current:", "@label" ) );
|
||||||
@ -1090,9 +1091,10 @@ ChoicePage::updateActionChoicePreview( InstallChoice choice )
|
|||||||
if ( shouldShowEncryptWidget( choice ) )
|
if ( shouldShowEncryptWidget( choice ) )
|
||||||
{
|
{
|
||||||
m_encryptWidget->show();
|
m_encryptWidget->show();
|
||||||
if ( m_config->preCheckEncryption() )
|
if ( m_config->preCheckEncryption() && ! m_preCheckActivated )
|
||||||
{
|
{
|
||||||
m_encryptWidget->setEncryptionCheckbox( true );
|
m_encryptWidget->setEncryptionCheckbox( true );
|
||||||
|
m_preCheckActivated = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
m_previewBeforeLabel->setText( tr( "Current:", "@label" ) );
|
m_previewBeforeLabel->setText( tr( "Current:", "@label" ) );
|
||||||
|
@ -173,6 +173,7 @@ private:
|
|||||||
QString m_osproberOneEntryName;
|
QString m_osproberOneEntryName;
|
||||||
|
|
||||||
bool m_enableEncryptionWidget = false;
|
bool m_enableEncryptionWidget = false;
|
||||||
|
bool m_preCheckActivated = false;
|
||||||
|
|
||||||
QMutex m_coreMutex;
|
QMutex m_coreMutex;
|
||||||
};
|
};
|
||||||
|
@ -184,15 +184,12 @@ EncryptWidget::updateState( const bool notify )
|
|||||||
|
|
||||||
Encryption newState = state();
|
Encryption newState = state();
|
||||||
|
|
||||||
if ( newState != m_state )
|
|
||||||
{
|
|
||||||
m_state = newState;
|
m_state = newState;
|
||||||
if ( notify )
|
if ( notify )
|
||||||
{
|
{
|
||||||
Q_EMIT stateChanged( m_state );
|
Q_EMIT stateChanged( m_state );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
EncryptWidget::onPassphraseEdited()
|
EncryptWidget::onPassphraseEdited()
|
||||||
|
Loading…
Reference in New Issue
Block a user