Added inelegant fix for ACME-1471 to pop up the old notification with each new notification

master
Cho 2014-05-29 03:04:19 +01:00
parent f06b305d9f
commit e143ceb9db
1 changed files with 14 additions and 1 deletions

View File

@ -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);
}
}