VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Main/Forms/VolumePasswordPanel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Main/Forms/VolumePasswordPanel.cpp')
-rw-r--r--src/Main/Forms/VolumePasswordPanel.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Main/Forms/VolumePasswordPanel.cpp b/src/Main/Forms/VolumePasswordPanel.cpp
index 920d4f9..3ec6aed 100644
--- a/src/Main/Forms/VolumePasswordPanel.cpp
+++ b/src/Main/Forms/VolumePasswordPanel.cpp
@@ -306,6 +306,16 @@ namespace VeraCrypt
{
return TrueCryptModeCheckBox->GetValue ();
}
+
+ void VolumePasswordPanel::SetTrueCryptMode (bool trueCryptMode)
+ {
+ bool bEnablePIM = !trueCryptMode;
+ TrueCryptModeCheckBox->SetValue (trueCryptMode);
+ PimCheckBox->Enable (bEnablePIM);
+ VolumePimStaticText->Enable (bEnablePIM);
+ VolumePimTextCtrl->Enable (bEnablePIM);
+ VolumePimHelpStaticText->Enable (bEnablePIM);
+ }
int VolumePasswordPanel::GetHeaderWipeCount () const
{