Remove m_preCheckEncryption variable from ChoicePage

This commit is contained in:
Penvern Vincent 2024-04-15 22:44:42 +02:00
parent cc835cee6f
commit 5ac23cd3d6
2 changed files with 2 additions and 5 deletions

View File

@ -83,14 +83,12 @@ ChoicePage::ChoicePage( Config* config, QWidget* parent )
, m_beforePartitionLabelsView( nullptr )
, m_bootloaderComboBox( nullptr )
, m_enableEncryptionWidget( true )
, m_preCheckEncryption( false )
{
setupUi( this );
auto gs = Calamares::JobQueue::instance()->globalStorage();
m_enableEncryptionWidget = gs->value( "enableLuksAutomatedPartitioning" ).toBool();
m_preCheckEncryption = m_config->preCheckEncryption();
// Set up drives combo
m_mainLayout->setDirection( QBoxLayout::TopToBottom );
@ -471,9 +469,9 @@ ChoicePage::onActionChanged()
m_encryptWidget->setFilesystem( FileSystem::typeForName( m_replaceFsTypesChoiceComboBox->currentText() ) );
}
if ( m_preCheckEncryption )
if ( m_config->preCheckEncryption() )
{
m_encryptWidget->setEncryptionCheckbox( m_preCheckEncryption );
m_encryptWidget->setEncryptionCheckbox( m_config->preCheckEncryption() );
}
}

View File

@ -170,7 +170,6 @@ private:
int m_lastSelectedDeviceIndex = -1;
bool m_enableEncryptionWidget = false;
bool m_preCheckEncryption = false;
QMutex m_coreMutex;
};