Exclude FileSystem::Luks2 from New File System dialog.

Just like with Luks1, we only want to create Luks2 containers with
some other file system inside.
This commit is contained in:
Andrius Štikonas 2017-12-29 20:31:22 +00:00
parent b4b5dcd804
commit eaff75dc1b
1 changed files with 2 additions and 1 deletions

View File

@ -74,7 +74,8 @@ void NewDialog::setupDialog()
for (const auto &fs : FileSystemFactory::map()) {
if (fs->supportCreate() != FileSystem::cmdSupportNone &&
fs->type() != FileSystem::Extended &&
fs->type() != FileSystem::Luks)
fs->type() != FileSystem::Luks &&
fs->type() != FileSystem::Luks2)
fsNames.append(fs->name());
}