diff --git a/options.c b/options.c index 8804bb0..3dc5496 100644 --- a/options.c +++ b/options.c @@ -215,6 +215,11 @@ add_option(options_t *options, int i, TCHAR **p) ++i; options->preconnectscript_timeout = _ttoi(p[1]); } + else if (streq(p[0], _T("config_menu_view")) && p[1]) + { + ++i; + options->config_menu_view = _ttoi(p[1]); + } else if (streq(p[0], _T("command")) && p[1]) { ++i; diff --git a/registry.c b/registry.c index 98b7ded..11470e2 100644 --- a/registry.c +++ b/registry.c @@ -60,7 +60,8 @@ struct regkey_int { {L"connectscript_timeout", &o.connectscript_timeout, 30}, {L"disconnectscript_timeout", &o.disconnectscript_timeout, 10}, {L"show_script_window", &o.show_script_window, 0}, - {L"service_only", &o.service_only, 0} + {L"service_only", &o.service_only, 0}, + {L"config_menu_view", &o.config_menu_view, CONFIG_VIEW_AUTO} }; static int