VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Common/Keyfiles.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/Common/Keyfiles.c b/src/Common/Keyfiles.c
index 9db05266..c634efaf 100644
--- a/src/Common/Keyfiles.c
+++ b/src/Common/Keyfiles.c
@@ -39,8 +39,11 @@ using namespace VeraCrypt;
BOOL HiddenFilesPresentInKeyfilePath = FALSE;
+#ifdef TCMOUNT
+extern BOOL UsePreferences;
+#endif
KeyFile *KeyFileAdd (KeyFile *firstKeyFile, KeyFile *keyFile)
{
KeyFile *kf = firstKeyFile;
@@ -612,11 +615,14 @@ BOOL CALLBACK KeyFilesDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPa
if (IsWindowVisible (GetDlgItem (hwndDlg, IDC_KEYFILES_TRY_EMPTY_PASSWORD)))
{
bTryEmptyPasswordWhenKeyfileUsed = IsButtonChecked (GetDlgItem (hwndDlg, IDC_KEYFILES_TRY_EMPTY_PASSWORD));
- WaitCursor ();
- SaveSettings (hwndDlg);
- NormalCursor ();
+ if (UsePreferences)
+ {
+ WaitCursor ();
+ SaveSettings (hwndDlg);
+ NormalCursor ();
+ }
}
#endif
EndDialog (hwndDlg, IDOK);
return 1;