Add a hidden debug option to give a choice to open Statistics window instead of the Lag Meter one

Northspring 2015-04-19 16:54:09 +02:00
parent 28220963ba
commit bc0e12b356
2 changed files with 19 additions and 1 deletions

View File

@ -23285,6 +23285,17 @@ Change of this parameter will affect the layout of buttons in notification toast
<key>Value</key>
<integer>0</integer>
</map>
<key>FSUseStatsInsteadOfLagMeter</key>
<map>
<key>Comment</key>
<string>Clicking on traffic indicator (upper right) toggles Statistics window, not the Lag Meter window</string>
<key>Persist</key>
<integer>1</integer>
<key>Type</key>
<string>Boolean</string>
<key>Value</key>
<integer>0</integer>
</map>
</map>
</llsd>

View File

@ -928,7 +928,14 @@ void LLStatusBar::onVolumeChanged(const LLSD& newvalue)
// <FS:PP> FIRE-6287: Clicking on traffic indicator toggles Lag Meter window
void LLStatusBar::onBandwidthGraphButtonClicked()
{
LLFloaterReg::toggleInstance("lagmeter");
if (gSavedSettings.getBOOL("FSUseStatsInsteadOfLagMeter"))
{
LLFloaterReg::toggleInstance("stats");
}
else
{
LLFloaterReg::toggleInstance("lagmeter");
}
}
// </FS:PP> FIRE-6287: Clicking on traffic indicator toggles Lag Meter window