Skip to content
Snippets Groups Projects
Commit ec42c50f authored by Tofu Linden's avatar Tofu Linden
Browse files

tidy-up. clicking mute button doesn't need to bring up the volume slider any more.

parent 903de794
No related branches found
No related tags found
No related merge requests found
...@@ -512,21 +512,7 @@ static void onClickScriptDebug(void*) ...@@ -512,21 +512,7 @@ static void onClickScriptDebug(void*)
//static //static
void LLStatusBar::onMouseEnterVolume(LLUICtrl* ctrl) void LLStatusBar::onMouseEnterVolume(LLUICtrl* ctrl)
{ {
#if 1 // show the master volume pull-down
//LLFloater* vp =
LLFloaterReg::showInstance("volume_pulldown"); //tmp
#else
#error do this for panel
#endif
}
static void onClickVolume(void* data)
{
// toggle the master mute setting
BOOL mute_audio = gSavedSettings.getBOOL("MuteAudio");
gSavedSettings.setBOOL("MuteAudio", !mute_audio);
// toggle the master volume pull-down
#if 1 #if 1
//LLFloater* vp = //LLFloater* vp =
...@@ -553,6 +539,13 @@ static void onClickVolume(void* data) ...@@ -553,6 +539,13 @@ static void onClickVolume(void* data)
#endif #endif
} }
static void onClickVolume(void* data)
{
// toggle the master mute setting
BOOL mute_audio = gSavedSettings.getBOOL("MuteAudio");
gSavedSettings.setBOOL("MuteAudio", !mute_audio);
}
// sets the static variables necessary for the date // sets the static variables necessary for the date
void LLStatusBar::setupDate() void LLStatusBar::setupDate()
{ {
......
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