SL-18296 FIXED 'Start' button is till toggled when desired FPS is reached

meow-7.2.2
Mnikolenko Productengine 2022-10-04 13:17:04 +03:00
parent 56c8723332
commit 82572f0ed4
1 changed files with 6 additions and 0 deletions

View File

@ -194,6 +194,12 @@ void LLFloaterPerformance::draw()
populateObjectList();
}
auto button = getChild<LLButton>("AutoTuneFPS");
if((bool)button->getToggleState() != LLPerfStats::tunables.userAutoTuneEnabled)
{
button->toggleState();
}
mUpdateTimer->setTimerExpirySec(REFRESH_INTERVAL);
}
LLFloater::draw();