diff options
| author | pepper <3782201+rohvani@users.noreply.github.com> | 2026-09-21 17:44:02 -0400 |
|---|---|---|
| committer | pepper <3782201+rohvani@users.noreply.github.com> | 2026-09-21 17:44:02 -0400 |
| commit | d06964f46025e135b74b3dd1e6c144c364bf6d1b (patch) | |
| tree | aae1bfdf8f6e6ef3f8f4adcd96c927ac8760da06 /indra/newview/llcommandlineparser.cpp | |
| parent | cc5d3dd3cd653971fff16cf2bc1d380edd5ea7f2 (diff) | |
| parent | 0a60806f8973c05b68cf65a5a01c41d81ff2da7b (diff) | |
Merge release/26.5 into project/chat-modernization
Preserve the history reader's page position while incorporating the focused page-selector refresh fix.
Diffstat (limited to 'indra/newview/llcommandlineparser.cpp')
| -rw-r--r-- | indra/newview/llcommandlineparser.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/indra/newview/llcommandlineparser.cpp b/indra/newview/llcommandlineparser.cpp index 0734b12531..7e1f85aff1 100644 --- a/indra/newview/llcommandlineparser.cpp +++ b/indra/newview/llcommandlineparser.cpp @@ -60,7 +60,7 @@ namespace // List of command-line switches that can't map-to settings variables. // Going forward, we want every new command-line switch to map-to some // settings variable. This list is used to validate that. - const std::set<std::string> unmapped_options = { "help", "set", "setdefault", "settings", "sessionsettings", "usersessionsettings" }; + const std::set<std::string> unmapped_options = { "help", "set", "setdefault", "settings", "sessionsettings", "usersessionsettings", "gpubenchmark" }; po::options_description gOptionsDesc; po::positional_options_description gPositionalOptions; @@ -611,6 +611,18 @@ void setControlValueCB(const LLCommandLineParser::token_vector_t& value, ctrl->setValue(llsdArray, false); } + else if (ctrl->isType(TYPE_LLSD)) + { + // Command-line LLSD should support a notation format string + // Note that LeapCommand is an TYPE_LLSD, but generaly is not a notation string, + // so keep a fallback to saving value directly. + // To preserve pre-setValueFromNotation, everything has a fallback. + std::string strvalue = onevalue(option, value); + if (!ctrl->setValueFromNotation(strvalue, false)) + { + ctrl->setValue(LLSD::String(strvalue), false); + } + } else { ctrl->setValue(onevalue(option, value), false); |
