MAINT-7020 llui/llfloater.cpp should not access settings
parent
946b28ad76
commit
e48af9ba0f
|
|
@ -64,8 +64,6 @@
|
|||
// use this to control "jumping" behavior when Ctrl-Tabbing
|
||||
const S32 TABBED_FLOATER_OFFSET = 0;
|
||||
|
||||
extern LLControlGroup gSavedSettings;
|
||||
|
||||
namespace LLInitParam
|
||||
{
|
||||
void TypeValues<LLFloaterEnums::EOpenPositioning>::declareValues()
|
||||
|
|
@ -653,13 +651,7 @@ void LLFloater::openFloater(const LLSD& key)
|
|||
&& !getFloaterHost()
|
||||
&& (!getVisible() || isMinimized()))
|
||||
{
|
||||
//Don't play a sound for incoming voice call based upon chat preference setting
|
||||
bool playSound = !(getName() == "incoming call" && gSavedSettings.getBOOL("PlaySoundIncomingVoiceCall") == FALSE);
|
||||
|
||||
if(playSound)
|
||||
{
|
||||
make_ui_sound("UISndWindowOpen");
|
||||
}
|
||||
make_ui_sound("UISndWindowOpen");
|
||||
}
|
||||
|
||||
//RN: for now, we don't allow rehosting from one multifloater to another
|
||||
|
|
|
|||
|
|
@ -2354,7 +2354,13 @@ void LLIncomingCallDialog::onAvatarNameCache(const LLUUID& agent_id,
|
|||
void LLIncomingCallDialog::onOpen(const LLSD& key)
|
||||
{
|
||||
LLCallDialog::onOpen(key);
|
||||
make_ui_sound("UISndStartIM");
|
||||
|
||||
if (gSavedSettings.getBOOL("PlaySoundIncomingVoiceCall"))
|
||||
{
|
||||
// play a sound for incoming voice call if respective property is set
|
||||
make_ui_sound("UISndStartIM");
|
||||
}
|
||||
|
||||
LLStringUtil::format_map_t args;
|
||||
LLGroupData data;
|
||||
// if it's a group call, retrieve group name to use it in question
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
layout="topleft"
|
||||
name="outgoing call"
|
||||
help_topic="outgoing_call"
|
||||
sound_flags="0"
|
||||
save_dock_state="true"
|
||||
title="CALLING"
|
||||
width="410">
|
||||
|
|
|
|||
Loading…
Reference in New Issue