Catching up with Lindies part 1
This commit is contained in:
@@ -5785,6 +5785,16 @@ bool script_question_cb(const LLSD& notification, const LLSD& response)
|
||||
S32 orig = notification["payload"]["questions"].asInteger();
|
||||
S32 new_questions = orig;
|
||||
|
||||
if (response["Details"])
|
||||
{
|
||||
// respawn notification...
|
||||
LLNotificationsUtil::add(notification["name"], notification["substitutions"], notification["payload"]);
|
||||
|
||||
// ...with description on top
|
||||
LLNotificationsUtil::add("DebitPermissionDetails");
|
||||
return false;
|
||||
}
|
||||
|
||||
// check whether permissions were granted or denied
|
||||
BOOL allowed = TRUE;
|
||||
// the "yes/accept" button is the first button in the template, making it button 0
|
||||
@@ -5841,14 +5851,6 @@ bool script_question_cb(const LLSD& notification, const LLSD& response)
|
||||
gNotifyBoxView->purgeMessagesMatching(OfferMatcher(item_id));
|
||||
}
|
||||
|
||||
if (response["Details"])
|
||||
{
|
||||
// respawn notification...
|
||||
LLNotifications::instance().add(notification["name"], notification["substitutions"], notification["payload"]);
|
||||
|
||||
// ...with description on top
|
||||
LLNotificationsUtil::add("DebitPermissionDetails");
|
||||
}
|
||||
return false;
|
||||
}
|
||||
static LLNotificationFunctorRegistration script_question_cb_reg_1("ScriptQuestion", script_question_cb);
|
||||
|
||||
Reference in New Issue
Block a user