mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 00:45:24 +00:00
[RAPPS] Proxy fields default state fix (CORE-16853) (#2594)
* Fix for CORE-16853 https://jira.reactos.org/browse/CORE-16853 Co-authored-by: Sylvain Deverre <deverre.sylv@gmail.com>
This commit is contained in:
parent
0d077c3068
commit
779f31a731
1 changed files with 6 additions and 1 deletions
|
@ -69,11 +69,16 @@ namespace
|
||||||
|
|
||||||
CheckRadioButton(hDlg, IDC_PROXY_DEFAULT, IDC_USE_PROXY, IDC_PROXY_DEFAULT + Info->Proxy);
|
CheckRadioButton(hDlg, IDC_PROXY_DEFAULT, IDC_USE_PROXY, IDC_PROXY_DEFAULT + Info->Proxy);
|
||||||
|
|
||||||
if (IDC_PROXY_DEFAULT + Info->Proxy == IDC_USE_PROXY)
|
if (Info->Proxy == 0)
|
||||||
{
|
{
|
||||||
EnableWindow(GetDlgItem(hDlg, IDC_PROXY_SERVER), TRUE);
|
EnableWindow(GetDlgItem(hDlg, IDC_PROXY_SERVER), TRUE);
|
||||||
EnableWindow(GetDlgItem(hDlg, IDC_NO_PROXY_FOR), TRUE);
|
EnableWindow(GetDlgItem(hDlg, IDC_NO_PROXY_FOR), TRUE);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
EnableWindow(GetDlgItem(hDlg, IDC_PROXY_SERVER), FALSE);
|
||||||
|
EnableWindow(GetDlgItem(hDlg, IDC_NO_PROXY_FOR), FALSE);
|
||||||
|
}
|
||||||
|
|
||||||
SetWindowTextW(GetDlgItem(hDlg, IDC_PROXY_SERVER), Info->szProxyServer);
|
SetWindowTextW(GetDlgItem(hDlg, IDC_PROXY_SERVER), Info->szProxyServer);
|
||||||
SetWindowTextW(GetDlgItem(hDlg, IDC_NO_PROXY_FOR), Info->szNoProxyFor);
|
SetWindowTextW(GetDlgItem(hDlg, IDC_NO_PROXY_FOR), Info->szNoProxyFor);
|
||||||
|
|
Loading…
Reference in a new issue