CHUI-100 WIP Fix translate chat checkbox showing
parent
bc5e0eda1b
commit
7edcbb1613
|
|
@ -236,6 +236,13 @@ void LLIMConversation::updateHeaderAndToolbar()
|
|||
mCloseBtn->setVisible(is_hosted);
|
||||
|
||||
enableDisableCallBtn();
|
||||
|
||||
showTranslationCheckbox();
|
||||
}
|
||||
|
||||
void LLIMConversation::showTranslationCheckbox(BOOL show)
|
||||
{
|
||||
getChild<LLUICtrl>("translate_chat_checkbox_lp")->setVisible(mIsNearbyChat? show : FALSE);
|
||||
}
|
||||
|
||||
// static
|
||||
|
|
|
|||
|
|
@ -56,6 +56,9 @@ public:
|
|||
*/
|
||||
static bool isChatMultiTab();
|
||||
|
||||
// show/hide the translation check box
|
||||
void showTranslationCheckbox(const BOOL visible = FALSE);
|
||||
|
||||
// LLFloater overrides
|
||||
/*virtual*/ void onOpen(const LLSD& key);
|
||||
/*virtual*/ BOOL postBuild();
|
||||
|
|
|
|||
|
|
@ -393,10 +393,6 @@ void LLNearbyChat::showHistory()
|
|||
storeRectControl();
|
||||
}
|
||||
|
||||
void LLNearbyChat::showTranslationCheckbox(BOOL show)
|
||||
{
|
||||
getChild<LLUICtrl>("translate_chat_checkbox_lp")->setVisible(show);
|
||||
}
|
||||
|
||||
BOOL LLNearbyChat::tick()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -87,7 +87,6 @@ public:
|
|||
static void sendChatFromViewer(const LLWString &wtext, EChatType type, BOOL animate);
|
||||
|
||||
void showHistory();
|
||||
void showTranslationCheckbox(BOOL show);
|
||||
|
||||
protected:
|
||||
static BOOL matchChatTypeTrigger(const std::string& in_str, std::string* out_str);
|
||||
|
|
|
|||
Loading…
Reference in New Issue