Skip to content
Snippets Groups Projects
Commit 724b6a8c authored by Andrey Kleshchev's avatar Andrey Kleshchev
Browse files

SL-18049 Part 5; Tweak new icon visibility

parent a16babdf
No related branches found
No related tags found
No related merge requests found
...@@ -66,7 +66,6 @@ ...@@ -66,7 +66,6 @@
#include "llviewermenu.h" // for gMenuBarView #include "llviewermenu.h" // for gMenuBarView
#include "llviewerparcelmgr.h" #include "llviewerparcelmgr.h"
#include "llviewerthrottle.h" #include "llviewerthrottle.h"
#include "llvoiceclient.h"
#include "lluictrlfactory.h" #include "lluictrlfactory.h"
#include "lltoolmgr.h" #include "lltoolmgr.h"
...@@ -193,12 +192,9 @@ BOOL LLStatusBar::postBuild() ...@@ -193,12 +192,9 @@ BOOL LLStatusBar::postBuild()
gSavedSettings.getControl("MuteAudio")->getSignal()->connect(boost::bind(&LLStatusBar::onVolumeChanged, this, _2)); gSavedSettings.getControl("MuteAudio")->getSignal()->connect(boost::bind(&LLStatusBar::onVolumeChanged, this, _2));
gSavedSettings.getControl("EnableVoiceChat")->getSignal()->connect(boost::bind(&LLStatusBar::onVoiceChanged, this, _2)); gSavedSettings.getControl("EnableVoiceChat")->getSignal()->connect(boost::bind(&LLStatusBar::onVoiceChanged, this, _2));
if (gSavedSettings.getBOOL("EnableVoiceChat")) if (!gSavedSettings.getBOOL("EnableVoiceChat") && LLAppViewer::instance()->isSecondInstance())
{
mBtnVolume->setImageUnselected(LLUI::getUIImage("Audio_Off"));
}
else
{ {
// Indicate that second instance started without sound
mBtnVolume->setImageUnselected(LLUI::getUIImage("VoiceMute_Off")); mBtnVolume->setImageUnselected(LLUI::getUIImage("VoiceMute_Off"));
} }
...@@ -655,12 +651,9 @@ void LLStatusBar::onVoiceChanged(const LLSD& newvalue) ...@@ -655,12 +651,9 @@ void LLStatusBar::onVoiceChanged(const LLSD& newvalue)
{ {
if (newvalue.asBoolean()) if (newvalue.asBoolean())
{ {
// Second instance starts with "VoiceMute_Off" icon, fix it
mBtnVolume->setImageUnselected(LLUI::getUIImage("Audio_Off")); mBtnVolume->setImageUnselected(LLUI::getUIImage("Audio_Off"));
} }
else
{
mBtnVolume->setImageUnselected(LLUI::getUIImage("VoiceMute_Off"));
}
refresh(); refresh();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment