mirror of
https://github.com/veracrypt/VeraCrypt
synced 2024-11-10 13:13:34 +01:00
Windows: Avoid updating configuration after opening keyfile file dialog when /quit switch used without preferences parameter.
This commit is contained in:
parent
39fb2edc25
commit
7fee9a04c4
@ -40,6 +40,9 @@ using namespace VeraCrypt;
|
||||
|
||||
BOOL HiddenFilesPresentInKeyfilePath = FALSE;
|
||||
|
||||
#ifdef TCMOUNT
|
||||
extern BOOL UsePreferences;
|
||||
#endif
|
||||
|
||||
KeyFile *KeyFileAdd (KeyFile *firstKeyFile, KeyFile *keyFile)
|
||||
{
|
||||
@ -613,9 +616,12 @@ BOOL CALLBACK KeyFilesDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPa
|
||||
{
|
||||
bTryEmptyPasswordWhenKeyfileUsed = IsButtonChecked (GetDlgItem (hwndDlg, IDC_KEYFILES_TRY_EMPTY_PASSWORD));
|
||||
|
||||
WaitCursor ();
|
||||
SaveSettings (hwndDlg);
|
||||
NormalCursor ();
|
||||
if (UsePreferences)
|
||||
{
|
||||
WaitCursor ();
|
||||
SaveSettings (hwndDlg);
|
||||
NormalCursor ();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
EndDialog (hwndDlg, IDOK);
|
||||
|
Loading…
Reference in New Issue
Block a user