Added inelegant fix for ACME-1471 to pop up the old notification with each new notification
parent
f06b305d9f
commit
e143ceb9db
|
|
@ -122,8 +122,21 @@ void LLScriptHandler::onChange( LLNotificationPtr notification )
|
|||
if (channel)
|
||||
{
|
||||
LLToastPanel* notify_box = LLToastPanel::buidPanelFromNotification(notification);
|
||||
channel->modifyToastByNotificationID(notification->getID(), notify_box);
|
||||
|
||||
LLToast::Params p;
|
||||
p.notif_id = notification->getID();
|
||||
p.notification = notification;
|
||||
p.panel = notify_box;
|
||||
p.on_delete_toast = boost::bind(&LLScriptHandler::onDeleteToast, this, _1);
|
||||
if(gAgent.isDoNotDisturb())
|
||||
{
|
||||
p.force_show = notification->getName() == "SystemMessage"
|
||||
|| notification->getName() == "GodMessage"
|
||||
|| notification->getPriority() >= NOTIFICATION_PRIORITY_HIGH;
|
||||
}
|
||||
|
||||
channel->removeToastByNotificationID(notification->getID());
|
||||
channel->addToast(p);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue