Fixed major bug EXT-6590 (Preference> Maturity rating changes without direct user input).
Now we're notifying user that his/her maturity preference has been changed. Reviewed by Mike: https://codereview.productengine.com/secondlife/r/216/ --HG-- branch : product-enginemeow-7.2.2
parent
85f1954a17
commit
f98f79be8f
|
|
@ -4786,6 +4786,10 @@ bool handle_special_notification_callback(const LLSD& notification, const LLSD&
|
|||
gSavedSettings.setU32("PreferredMaturity", preferredMaturity);
|
||||
gAgent.sendMaturityPreferenceToServer(preferredMaturity);
|
||||
|
||||
// notify user that the maturity preference has been changed
|
||||
LLSD args;
|
||||
args["RATING"] = LLViewerRegion::accessToString(preferredMaturity);
|
||||
LLNotificationsUtil::add("PreferredMaturityChanged", args);
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -3379,6 +3379,13 @@ You can click 'Change Preference' to raise your maturity Rating prefer
|
|||
</form>
|
||||
</notification>
|
||||
|
||||
<notification
|
||||
icon="notifytip.tga"
|
||||
name="PreferredMaturityChanged"
|
||||
type="notifytip">
|
||||
Your maturity rating preference is now [RATING].
|
||||
</notification>
|
||||
|
||||
<notification
|
||||
icon="alertmodal.tga"
|
||||
name="LandClaimAccessBlocked"
|
||||
|
|
|
|||
Loading…
Reference in New Issue