Remove m_preCheckEncryption variable from ChoicePage
This commit is contained in:
parent
cc835cee6f
commit
5ac23cd3d6
@ -83,14 +83,12 @@ ChoicePage::ChoicePage( Config* config, QWidget* parent )
|
|||||||
, m_beforePartitionLabelsView( nullptr )
|
, m_beforePartitionLabelsView( nullptr )
|
||||||
, m_bootloaderComboBox( nullptr )
|
, m_bootloaderComboBox( nullptr )
|
||||||
, m_enableEncryptionWidget( true )
|
, m_enableEncryptionWidget( true )
|
||||||
, m_preCheckEncryption( false )
|
|
||||||
{
|
{
|
||||||
setupUi( this );
|
setupUi( this );
|
||||||
|
|
||||||
auto gs = Calamares::JobQueue::instance()->globalStorage();
|
auto gs = Calamares::JobQueue::instance()->globalStorage();
|
||||||
|
|
||||||
m_enableEncryptionWidget = gs->value( "enableLuksAutomatedPartitioning" ).toBool();
|
m_enableEncryptionWidget = gs->value( "enableLuksAutomatedPartitioning" ).toBool();
|
||||||
m_preCheckEncryption = m_config->preCheckEncryption();
|
|
||||||
|
|
||||||
// Set up drives combo
|
// Set up drives combo
|
||||||
m_mainLayout->setDirection( QBoxLayout::TopToBottom );
|
m_mainLayout->setDirection( QBoxLayout::TopToBottom );
|
||||||
@ -471,9 +469,9 @@ ChoicePage::onActionChanged()
|
|||||||
m_encryptWidget->setFilesystem( FileSystem::typeForName( m_replaceFsTypesChoiceComboBox->currentText() ) );
|
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() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -170,7 +170,6 @@ private:
|
|||||||
int m_lastSelectedDeviceIndex = -1;
|
int m_lastSelectedDeviceIndex = -1;
|
||||||
|
|
||||||
bool m_enableEncryptionWidget = false;
|
bool m_enableEncryptionWidget = false;
|
||||||
bool m_preCheckEncryption = false;
|
|
||||||
|
|
||||||
QMutex m_coreMutex;
|
QMutex m_coreMutex;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user