Rookie mistake.

This commit is contained in:
Teo Mrnjavac 2016-04-21 19:30:18 +02:00
parent 9a8dc0127d
commit 221c375bd4
1 changed files with 2 additions and 0 deletions

View File

@ -223,12 +223,14 @@ void NewDialog::updateHideAndShow()
dialogWidget().noSetLabel().setVisible(false);
}
if (FS::luks::canEncryptType(FileSystem::typeForName(dialogWidget().comboFileSystem().currentText())))
{
dialogWidget().checkBoxEncrypt().show();
if (dialogWidget().checkBoxEncrypt().isChecked())
{
dialogWidget().labelPassphrase().show();
dialogWidget().editPassphrase().show();
}
}
else
{
dialogWidget().checkBoxEncrypt().hide();