Further cleanup of im floater draw call due to last commit
This commit is contained in:
@@ -554,12 +554,7 @@ void LLFloaterIMPanel::onClickMuteVoice()
|
|||||||
// virtual
|
// virtual
|
||||||
void LLFloaterIMPanel::draw()
|
void LLFloaterIMPanel::draw()
|
||||||
{
|
{
|
||||||
LLViewerRegion* region = gAgent.getRegion();
|
bool enable_connect = mSessionInitialized && LLVoiceClient::getInstance()->voiceEnabled() && mCallBackEnabled;
|
||||||
|
|
||||||
bool enable_connect = region
|
|
||||||
&& mSessionInitialized
|
|
||||||
&& LLVoiceClient::getInstance()->voiceEnabled()
|
|
||||||
&& mCallBackEnabled;
|
|
||||||
|
|
||||||
// hide/show start call and end call buttons
|
// hide/show start call and end call buttons
|
||||||
mEndCallBtn->setVisible(LLVoiceClient::getInstance()->voiceEnabled() && mVoiceChannel->getState() >= LLVoiceChannel::STATE_CALL_STARTED);
|
mEndCallBtn->setVisible(LLVoiceClient::getInstance()->voiceEnabled() && mVoiceChannel->getState() >= LLVoiceChannel::STATE_CALL_STARTED);
|
||||||
|
|||||||
Reference in New Issue
Block a user