implemented EXT-4131 [BSI] "Only friends and groups can call or IM me" NEEDS auto-response
added a modal warning window "Non-friends won't know that you've choosen to ignore their calls and instant messages." --HG-- branch : product-enginemeow-7.2.2
parent
bac4045064
commit
307d94a92a
|
|
@ -1435,6 +1435,7 @@ BOOL LLPanelPreference::postBuild()
|
|||
media_enabled_ctrl->set(enabled);
|
||||
media_enabled_ctrl->setTentative(!(video_enabled == music_enabled == media_enabled));
|
||||
getChild<LLCheckBoxCtrl>("autoplay_enabled")->setEnabled(enabled);
|
||||
getChild<LLCheckBoxCtrl>("voice_call_friends_only_check")->setCommitCallback(showFriendsOnlyWarning);
|
||||
}
|
||||
|
||||
apply();
|
||||
|
|
@ -1485,6 +1486,14 @@ void LLPanelPreference::saveSettings()
|
|||
}
|
||||
}
|
||||
|
||||
void LLPanelPreference::showFriendsOnlyWarning(LLUICtrl* checkbox, const LLSD& value)
|
||||
{
|
||||
if (checkbox && checkbox->getValue())
|
||||
{
|
||||
LLNotificationsUtil::add("FriendsAndGroupsOnly");
|
||||
}
|
||||
}
|
||||
|
||||
void LLPanelPreference::cancel()
|
||||
{
|
||||
for (control_values_map_t::iterator iter = mSavedValues.begin();
|
||||
|
|
|
|||
|
|
@ -166,6 +166,9 @@ public:
|
|||
virtual void saveSettings();
|
||||
|
||||
private:
|
||||
//for "Only friends and groups can call or IM me"
|
||||
static void showFriendsOnlyWarning(LLUICtrl*, const LLSD&);
|
||||
|
||||
typedef std::map<LLControlVariable*, LLSD> control_values_map_t;
|
||||
control_values_map_t mSavedValues;
|
||||
|
||||
|
|
|
|||
|
|
@ -242,6 +242,16 @@ Save all changes to clothing/body parts?
|
|||
yestext="Save All"/>
|
||||
</notification>
|
||||
|
||||
<notification
|
||||
icon="alertmodal.tga"
|
||||
name="FriendsAndGroupsOnly"
|
||||
type="alertmodal">
|
||||
Non-friends won't know that you've choosen to ignore their calls and instant messages.
|
||||
<usetemplate
|
||||
name="okbutton"
|
||||
yestext="Yes"/>
|
||||
</notification>
|
||||
|
||||
<notification
|
||||
icon="alertmodal.tga"
|
||||
name="GrantModifyRights"
|
||||
|
|
|
|||
Loading…
Reference in New Issue