Merge pull request #2020 from dalto8/zfsfix3

[partition] Fix encryption being shown when not available
This commit is contained in:
Adriaan de Groot 2022-07-17 23:08:26 +02:00 committed by GitHub
commit c49d520d3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -467,18 +467,6 @@ ChoicePage::onActionChanged()
applyActionChoice( m_config->installChoice() );
}
// Whole disk encryption isn't implemented for zfs so disable the option for now
if ( m_eraseFsTypesChoiceComboBox != nullptr && m_enableEncryptionWidget )
{
if ( m_eraseFsTypesChoiceComboBox->currentText() == "zfs" )
{
m_encryptWidget->hide();
}
else
{
m_encryptWidget->show();
}
}
updateNextEnabled();
}
@ -1075,10 +1063,8 @@ ChoicePage::updateActionChoicePreview( InstallChoice choice )
case InstallChoice::Erase:
case InstallChoice::Replace:
{
if ( m_enableEncryptionWidget )
{
m_encryptWidget->show();
}
m_encryptWidget->setVisible( m_enableEncryptionWidget && m_eraseFsTypesChoiceComboBox->currentText() != "zfs"
&& choice == InstallChoice::Erase );
m_previewBeforeLabel->setText( tr( "Current:" ) );
m_afterPartitionBarsView = new PartitionBarsView( m_previewAfterFrame );
m_afterPartitionBarsView->setNestedPartitionsMode( mode );