From 06e8fbace7f7c85d9b5776c29e7ffc2534478616 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Wed, 25 Sep 2019 15:04:28 +0200 Subject: Windows: Disable the Keyfiles button in system encryption wizard since we don't support them yet. --- src/Format/Tcformat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/Format/Tcformat.c b/src/Format/Tcformat.c index 0841aaa6..009f8e17 100644 --- a/src/Format/Tcformat.c +++ b/src/Format/Tcformat.c @@ -4391,7 +4391,8 @@ BOOL CALLBACK PageDialogProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa SetCheckBox (hwndDlg, IDC_PIM_ENABLE, PimEnable); SetCheckBox (hwndDlg, IDC_KEYFILES_ENABLE, KeyFilesEnable && !SysEncInEffect()); - EnableWindow (GetDlgItem (hwndDlg, IDC_KEY_FILES), KeyFilesEnable); + EnableWindow (GetDlgItem (hwndDlg, IDC_KEY_FILES), KeyFilesEnable && !SysEncInEffect()); + EnableWindow (GetDlgItem (hwndDlg, IDC_KEYFILES_ENABLE), !SysEncInEffect()); SetWindowTextW (GetDlgItem (hwndDlg, IDC_BOX_HELP), str); -- cgit v1.2.3