diff --git a/indra/newview/llimpanel.cpp b/indra/newview/llimpanel.cpp index 26a870690..10cfd7a26 100644 --- a/indra/newview/llimpanel.cpp +++ b/indra/newview/llimpanel.cpp @@ -59,6 +59,7 @@ #include "llstylemap.h" #include "lltrans.h" #include "lluictrlfactory.h" +#include "llversioninfo.h" #include "llviewerobjectlist.h" #include "llviewertexteditor.h" #include "llviewerstats.h" @@ -333,7 +334,6 @@ LLFloaterIMPanel::LLFloaterIMPanel( static LLCachedControl concise("UseConciseGroupChatButtons"); xml_filename = concise ? "floater_instant_message_group_concisebuttons.xml" : "floater_instant_message_group.xml"; bool support = boost::starts_with(mLogLabel, LLTrans::getString("SHORT_APP_NAME") + ' '); - // Singu Note: We could make a button feature for dumping Help->About contents for support, too. mSessionType = support ? SUPPORT_SESSION : GROUP_SESSION; } else @@ -564,11 +564,21 @@ BOOL LLFloaterIMPanel::postBuild() mSpeakerPanel->refreshSpeakers(); } - if (mSessionType == P2P_SESSION) + switch (mSessionType) + { + case P2P_SESSION: { getChild("mute_btn")->setCommitCallback(boost::bind(&LLFloaterIMPanel::onClickMuteVoice, this)); getChild("speaker_volume")->setCommitCallback(boost::bind(&LLVoiceClient::setUserVolume, LLVoiceClient::getInstance(), mOtherParticipantUUID, _2)); } + break; + case SUPPORT_SESSION: + getChildView("Support Check")->setVisible(true); + // Singu Note: We could make a button feature for dumping Help->About contents for support, too. + break; + default: + break; + } setDefaultBtn("send_btn"); @@ -1353,6 +1363,12 @@ void LLFloaterIMPanel::onSendMsg() } // [/RLVa:KB] + if (mSessionType == SUPPORT_SESSION && getChildView("Support Check")->getValue()) + { + static const auto version = llformat(" (%d) ", LLVersionInfo::getBuild()); + utf8_text.insert(action ? 3 : 0, action ? version.substr(0, version.size()-1) : version.substr(1)); + } + if ( mSessionInitialized ) { // Split messages that are too long, same code like in llimpanel.cpp diff --git a/indra/newview/skins/default/xui/en-us/floater_instant_message_group.xml b/indra/newview/skins/default/xui/en-us/floater_instant_message_group.xml index 2f3a4a11b..a9cfeeb46 100644 --- a/indra/newview/skins/default/xui/en-us/floater_instant_message_group.xml +++ b/indra/newview/skins/default/xui/en-us/floater_instant_message_group.xml @@ -17,6 +17,7 @@ + +