From dac349f2f624b49d8505d5b1cd69d914be58fcb3 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Mon, 11 Jul 2022 09:31:23 +0200 Subject: [PATCH] FIRE-31800: Fix doubleClick teleport enabled/disabled message is missing --- indra/newview/llviewermenu.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp index 3371b92961..0fecd8ae7e 100644 --- a/indra/newview/llviewermenu.cpp +++ b/indra/newview/llviewermenu.cpp @@ -9681,6 +9681,7 @@ void setDoubleClickAction(const std::string& control) bool ignore_mask = true; conflictHandler.registerControl(control, index, click, key, mask, ignore_mask); + report_to_nearby_chat(LLTrans::getString("DoubleClickTeleportEnabled")); } else { @@ -9691,6 +9692,7 @@ void setDoubleClickAction(const std::string& control) if (data.mMouse == click && data.mKey == key && data.mMask == mask) { conflictHandler.clearControl(control, i); + report_to_nearby_chat(LLTrans::getString("DoubleClickTeleportDisabled")); } } } @@ -9698,7 +9700,7 @@ void setDoubleClickAction(const std::string& control) conflictHandler.saveToSettings(); } -bool isDoubleClickActionEnabled(const std::string control) +bool isDoubleClickActionEnabled(const std::string& control) { constexpr LLKeyConflictHandler::ESourceMode mode{ LLKeyConflictHandler::MODE_THIRD_PERSON }; constexpr EMouseClickType click{ EMouseClickType::CLICK_DOUBLELEFT };