[partition] Checking if there is LUKS creation support and if partition is not Extended before enabling encryption in CreatePartitionDialog.
This commit is contained in:
parent
3026b04f44
commit
311f13d479
@ -261,7 +261,9 @@ CreatePartitionDialog::updateMountPointUi()
|
|||||||
FileSystem::Type type = FileSystem::typeForName( m_ui->fsComboBox->currentText() );
|
FileSystem::Type type = FileSystem::typeForName( m_ui->fsComboBox->currentText() );
|
||||||
enabled = !s_unmountableFS.contains( type );
|
enabled = !s_unmountableFS.contains( type );
|
||||||
|
|
||||||
if ( FS::luks::canEncryptType( type ) )
|
if ( FileSystemFactory::map()[FileSystem::Type::Luks]->supportCreate() &&
|
||||||
|
FS::luks::canEncryptType( type ) &&
|
||||||
|
!m_role.has( PartitionRole::Extended ) )
|
||||||
{
|
{
|
||||||
m_ui->encryptWidget->show();
|
m_ui->encryptWidget->show();
|
||||||
m_ui->encryptWidget->reset();
|
m_ui->encryptWidget->reset();
|
||||||
|
Loading…
Reference in New Issue
Block a user