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