From e6df50ea6b1476d04caad64fc919974684a4a091 Mon Sep 17 00:00:00 2001 From: Jacob Nevins Date: Fri, 29 Apr 2022 11:39:04 +0100 Subject: [PATCH] Restore 'Local' proxy type in config UI. It was accidentally disabled in 2a26ebd0d5. --- unix/config-unix.c | 2 +- windows/config.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/unix/config-unix.c b/unix/config-unix.c index 349a643f..d832a18b 100644 --- a/unix/config-unix.c +++ b/unix/config-unix.c @@ -39,7 +39,7 @@ void unix_setup_config_box(struct controlbox *b, bool midsession, int protocol) s = ctrl_getset(b, "Connection/Proxy", "basics", NULL); for (i = 0; i < s->ncontrols; i++) { c = s->ctrls[i]; - if (c->generic.type == CTRL_RADIO && + if (c->generic.type == CTRL_LISTBOX && c->generic.handler == proxy_type_handler) { c->generic.context.i |= PROXY_UI_FLAG_LOCAL; break; diff --git a/windows/config.c b/windows/config.c index bcac905a..17448260 100644 --- a/windows/config.c +++ b/windows/config.c @@ -362,7 +362,7 @@ void win_setup_config_box(struct controlbox *b, HWND *hwndp, bool has_help, s = ctrl_getset(b, "Connection/Proxy", "basics", NULL); for (i = 0; i < s->ncontrols; i++) { c = s->ctrls[i]; - if (c->generic.type == CTRL_RADIO && + if (c->generic.type == CTRL_LISTBOX && c->generic.handler == proxy_type_handler) { c->generic.context.i |= PROXY_UI_FLAG_LOCAL; break;