Replace FSShowVoiceVisualizer with new LL setting VoiceVisualizerEnabled

master
Ansariel 2024-09-11 03:04:37 +02:00
parent ef39bd37fa
commit 7b71acf77c
3 changed files with 3 additions and 14 deletions

View File

@ -22317,17 +22317,6 @@ Change of this parameter will affect the layout of buttons in notification toast
<integer>1</integer>
</map>
<!-- End: Prefs > Sound/Media => UI Sounds -->
<key>FSShowVoiceVisualizer</key>
<map>
<key>Comment</key>
<string>Shows the voice visualizer over avatars if enabled.</string>
<key>Persist</key>
<integer>1</integer>
<key>Type</key>
<string>Boolean</string>
<key>Value</key>
<integer>1</integer>
</map>
<key>FSShowMyOwnVoiceVisualizer</key>
<map>
<key>Comment</key>

View File

@ -2956,8 +2956,8 @@ void LLVOAvatar::idleUpdateVoiceVisualizer(bool voice_enabled, const LLVector3 &
}
// <FS:Ansariel> FIRE-1916: Hide voice dots over avatars
static LLCachedControl<bool> fsShowVoiceVisualizer(gSavedSettings, "FSShowVoiceVisualizer");
if (!fsShowVoiceVisualizer)
static LLCachedControl<bool> voiceVisualizerEnabled(gSavedSettings, "VoiceVisualizerEnabled");
if (!voiceVisualizerEnabled)
{
render_visualizer = false;
}

View File

@ -973,7 +973,7 @@
width="237"/>
<check_box
enabled_control="EnableVoiceChat"
control_name="FSShowVoiceVisualizer"
control_name="VoiceVisualizerEnabled"
follows="left|top"
height="15"
label="Show voice visualizers over avatars"