CHOP-959: Introduce CmdLineChannel settings var, map --channel to it.
parent
09d8d17382
commit
d8565b05a5
|
|
@ -22,7 +22,8 @@
|
|||
<map>
|
||||
<key>count</key>
|
||||
<integer>1</integer>
|
||||
<!-- Special case. Not mapped to a setting. -->
|
||||
<key>map-to</key>
|
||||
<string>CmdLineChannel</string>
|
||||
</map>
|
||||
|
||||
<key>console</key>
|
||||
|
|
|
|||
|
|
@ -1749,6 +1749,17 @@
|
|||
<key>Value</key>
|
||||
<integer>0</integer>
|
||||
</map>
|
||||
<key>CmdLineChannel</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Command line specified channel name</string>
|
||||
<key>Persist</key>
|
||||
<integer>0</integer>
|
||||
<key>Type</key>
|
||||
<string>String</string>
|
||||
<key>Value</key>
|
||||
<string />
|
||||
</map>
|
||||
<key>CmdLineDisableVoice</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
|
|
|
|||
|
|
@ -2536,9 +2536,10 @@ bool LLAppViewer::initConfiguration()
|
|||
}
|
||||
}
|
||||
|
||||
if(clp.hasOption("channel"))
|
||||
{
|
||||
LLVersionInfo::resetChannel(clp.getOption("channel")[0]);
|
||||
std::string CmdLineChannel(gSavedSettings.getString("CmdLineChannel"));
|
||||
if(! CmdLineChannel.empty())
|
||||
{
|
||||
LLVersionInfo::resetChannel(CmdLineChannel);
|
||||
}
|
||||
|
||||
// If we have specified crash on startup, set the global so we'll trigger the crash at the right time
|
||||
|
|
|
|||
Loading…
Reference in New Issue