summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterperformance.cpp
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2022-01-25 19:43:32 +0200
committerMnikolenko Productengine <mnikolenko@productengine.com>2022-01-25 19:43:32 +0200
commitb50de181623874ab799fdc31532dffe8f7bc610a (patch)
tree1027e985c838b902691d5e34a0fbc76a96b675ae /indra/newview/llfloaterperformance.cpp
parent0c70f9d91a15c240f00176d6d81b74593ce3b0d3 (diff)
SL-16627 add auto-adjustment warning for affected settings
Diffstat (limited to 'indra/newview/llfloaterperformance.cpp')
-rw-r--r--indra/newview/llfloaterperformance.cpp19
1 files changed, 1 insertions, 18 deletions
diff --git a/indra/newview/llfloaterperformance.cpp b/indra/newview/llfloaterperformance.cpp
index 316b9ab1b6..9cb3c4ce66 100644
--- a/indra/newview/llfloaterperformance.cpp
+++ b/indra/newview/llfloaterperformance.cpp
@@ -80,7 +80,7 @@ LLFloaterPerformance::LLFloaterPerformance(const LLSD& key)
{
mContextMenu = new LLExceptionsContextMenu(this);
- mCommitCallbackRegistrar.add("Pref.MouseDown", boost::bind(&LLFloaterPerformance::onUICtrlMouseDown, this));
+ mCommitCallbackRegistrar.add("Pref.AutoAdjustWarning", boost::bind(&LLFloaterPreference::showAutoAdjustWarning));
}
LLFloaterPerformance::~LLFloaterPerformance()
@@ -540,21 +540,4 @@ void LLFloaterPerformance::onAvatarListRightClick(LLUICtrl* ctrl, S32 x, S32 y)
}
}
-void LLFloaterPerformance::onUICtrlMouseDown()
-{
- static LLCachedControl<bool> use_auto_adjust(gSavedSettings,"AutoFPS");
- if (use_auto_adjust)
- {
- LLNotificationsUtil::add("AutoFPSConfirmDisable", LLSD(), LLSD(),
- [](const LLSD&notif, const LLSD&resp)
- {
- S32 opt = LLNotificationsUtil::getSelectedOption(notif, resp);
- if (opt == 0)
- {
- gSavedSettings.setBOOL("AutoFPS", FALSE);
- }
- });
- }
-}
-
// EOF