mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
Linux & MacOSX: automatically check TrueCryptMode in password dialog when selecting a container file that has the .tc file extension
This commit is contained in:
@@ -36,6 +36,12 @@ namespace VeraCrypt
|
||||
|
||||
PasswordPanel = new VolumePasswordPanel (this, &options, options.Password, disableMountOptions, options.Keyfiles, !disableMountOptions, true, true, false, true, true);
|
||||
PasswordPanel->SetCacheCheckBoxValidator (wxGenericValidator (&Options.CachePassword));
|
||||
|
||||
if (options.Path && options.Path->HasTrueCryptExtension() && !disableMountOptions
|
||||
&& !options.TrueCryptMode && (options.Pim <= 0))
|
||||
{
|
||||
PasswordPanel->SetTrueCryptMode (true);
|
||||
}
|
||||
|
||||
PasswordSizer->Add (PasswordPanel, 1, wxALL | wxEXPAND);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user