Activate missed notifications at startup again; crash was caused by c-style cast in LLFloaterView and is fixed already
parent
464a771f7b
commit
4831767141
|
|
@ -135,30 +135,32 @@ void LLChannelManager::onLoginCompleted()
|
|||
// Need to investigate this and fix possible problems with notifications in startup time
|
||||
// Viewer can normally receive and show of postponed notifications about purchasing in marketplace on startup time.
|
||||
// Other types of postponed notifications did not tested.
|
||||
//// create a channel for the StartUp Toast
|
||||
//LLScreenChannelBase::Params p;
|
||||
//p.id = LLUUID(gSavedSettings.getString("StartUpChannelUUID"));
|
||||
//p.channel_align = CA_RIGHT;
|
||||
//mStartUpChannel = createChannel(p);
|
||||
// <FS:Ansariel> Uncomment this code again; crash was caused by c-style cast in LLFloaterView
|
||||
// create a channel for the StartUp Toast
|
||||
LLScreenChannelBase::Params p;
|
||||
p.id = LLUUID(gSavedSettings.getString("StartUpChannelUUID"));
|
||||
p.channel_align = CA_RIGHT;
|
||||
mStartUpChannel = createChannel(p);
|
||||
|
||||
//if(!mStartUpChannel)
|
||||
//{
|
||||
// onStartUpToastClose();
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// gViewerWindow->getRootView()->addChild(mStartUpChannel);
|
||||
if(!mStartUpChannel)
|
||||
{
|
||||
onStartUpToastClose();
|
||||
}
|
||||
else
|
||||
{
|
||||
gViewerWindow->getRootView()->addChild(mStartUpChannel);
|
||||
|
||||
// // init channel's position and size
|
||||
// S32 channel_right_bound = gViewerWindow->getWorldViewRectScaled().mRight - gSavedSettings.getS32("NotificationChannelRightMargin");
|
||||
// S32 channel_width = gSavedSettings.getS32("NotifyBoxWidth");
|
||||
// mStartUpChannel->init(channel_right_bound - channel_width, channel_right_bound);
|
||||
// mStartUpChannel->setMouseDownCallback(boost::bind(&LLNotificationWellWindow::onStartUpToastClick, LLNotificationWellWindow::getInstance(), _2, _3, _4));
|
||||
// init channel's position and size
|
||||
S32 channel_right_bound = gViewerWindow->getWorldViewRectScaled().mRight - gSavedSettings.getS32("NotificationChannelRightMargin");
|
||||
S32 channel_width = gSavedSettings.getS32("NotifyBoxWidth");
|
||||
mStartUpChannel->init(channel_right_bound - channel_width, channel_right_bound);
|
||||
mStartUpChannel->setMouseDownCallback(boost::bind(&LLNotificationWellWindow::onStartUpToastClick, LLNotificationWellWindow::getInstance(), _2, _3, _4));
|
||||
|
||||
// mStartUpChannel->setCommitCallback(boost::bind(&LLChannelManager::onStartUpToastClose, this));
|
||||
// mStartUpChannel->createStartUpToast(away_notifications, gSavedSettings.getS32("StartUpToastLifeTime"));
|
||||
//}
|
||||
mStartUpChannel->setCommitCallback(boost::bind(&LLChannelManager::onStartUpToastClose, this));
|
||||
mStartUpChannel->createStartUpToast(away_notifications, gSavedSettings.getS32("StartUpToastLifeTime"));
|
||||
}
|
||||
}
|
||||
// </FS:Ansariel>
|
||||
|
||||
LLPersistentNotificationStorage::getInstance()->loadNotifications();
|
||||
LLDoNotDisturbNotificationStorage::getInstance()->loadNotifications();
|
||||
|
|
|
|||
Loading…
Reference in New Issue