summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterpreference.cpp
diff options
context:
space:
mode:
authorMaxim Nikolenko <maximnproductengine@lindenlab.com>2023-01-10 22:53:32 +0200
committerMaxim Nikolenko <maximnproductengine@lindenlab.com>2023-01-10 22:55:47 +0200
commit020bfa66ba9f1fee3e403595a1d6c95332bb16f7 (patch)
treee9ff26364c169491ab346f3909f66051bd765eeb /indra/newview/llfloaterpreference.cpp
parent495e34b84fa34ae5394f33f6f1175e959c56e769 (diff)
SL-18923 Add Reset to default settings button
Diffstat (limited to 'indra/newview/llfloaterpreference.cpp')
-rw-r--r--indra/newview/llfloaterpreference.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/llfloaterpreference.cpp b/indra/newview/llfloaterpreference.cpp
index 76633a46a9..bb4ddf5969 100644
--- a/indra/newview/llfloaterpreference.cpp
+++ b/indra/newview/llfloaterpreference.cpp
@@ -788,6 +788,12 @@ void LLFloaterPreference::setHardwareDefaults()
saveGraphicsPreset(preset_graphic_active);
saveSettings(); // save here to be able to return to the previous preset by Cancel
}
+ setRecommendedSettings();
+}
+
+void LLFloaterPreference::setRecommendedSettings()
+{
+ gSavedSettings.setBOOL("AutoTuneFPS", FALSE);
LLFeatureManager::getInstance()->applyRecommendedSettings();