Skip to content
Snippets Groups Projects
Commit 6c554477 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Fix invalid name in notification channel

parent c60ea88b
No related branches found
No related tags found
2 merge requests!3Update to main branch,!2Rebase onto current main branch
...@@ -52,7 +52,6 @@ LLFloaterNotificationsTabbed::LLFloaterNotificationsTabbed(const LLSD& key) : LL ...@@ -52,7 +52,6 @@ LLFloaterNotificationsTabbed::LLFloaterNotificationsTabbed(const LLSD& key) : LL
{ {
setOverlapsScreenChannel(true); setOverlapsScreenChannel(true);
mNotificationUpdates.reset(new NotificationTabbedChannel(this));
mNotificationsSeparator = std::make_unique<LLNotificationSeparator>(); mNotificationsSeparator = std::make_unique<LLNotificationSeparator>();
} }
...@@ -63,6 +62,7 @@ BOOL LLFloaterNotificationsTabbed::postBuild() ...@@ -63,6 +62,7 @@ BOOL LLFloaterNotificationsTabbed::postBuild()
mGroupNoticeMessageList = getChild<LLNotificationListView>("group_notice_notification_list"); mGroupNoticeMessageList = getChild<LLNotificationListView>("group_notice_notification_list");
mTransactionMessageList = getChild<LLNotificationListView>("transaction_notification_list"); mTransactionMessageList = getChild<LLNotificationListView>("transaction_notification_list");
mSystemMessageList = getChild<LLNotificationListView>("system_notification_list"); mSystemMessageList = getChild<LLNotificationListView>("system_notification_list");
mNotificationsSeparator = std::make_unique<LLNotificationSeparator>();
mNotificationsSeparator->initTaggedList(LLNotificationListItem::getGroupInviteTypes(), mGroupInviteMessageList); mNotificationsSeparator->initTaggedList(LLNotificationListItem::getGroupInviteTypes(), mGroupInviteMessageList);
mNotificationsSeparator->initTaggedList(LLNotificationListItem::getGroupNoticeTypes(), mGroupNoticeMessageList); mNotificationsSeparator->initTaggedList(LLNotificationListItem::getGroupNoticeTypes(), mGroupNoticeMessageList);
mNotificationsSeparator->initTaggedList(LLNotificationListItem::getTransactionTypes(), mTransactionMessageList); mNotificationsSeparator->initTaggedList(LLNotificationListItem::getTransactionTypes(), mTransactionMessageList);
...@@ -76,6 +76,7 @@ BOOL LLFloaterNotificationsTabbed::postBuild() ...@@ -76,6 +76,7 @@ BOOL LLFloaterNotificationsTabbed::postBuild()
mCollapseAllBtn->setClickedCallback(boost::bind(&LLFloaterNotificationsTabbed::onClickCollapseAllBtn,this)); mCollapseAllBtn->setClickedCallback(boost::bind(&LLFloaterNotificationsTabbed::onClickCollapseAllBtn,this));
// get a corresponding channel // get a corresponding channel
mNotificationUpdates.reset(new NotificationTabbedChannel(this));
initChannel(); initChannel();
BOOL rv = LLTransientDockableFloater::postBuild(); BOOL rv = LLTransientDockableFloater::postBuild();
...@@ -231,7 +232,7 @@ bool LLFloaterNotificationsTabbed::isWindowEmpty() ...@@ -231,7 +232,7 @@ bool LLFloaterNotificationsTabbed::isWindowEmpty()
//--------------------------------------------------------------------------------- //---------------------------------------------------------------------------------
LLFloaterNotificationsTabbed::NotificationTabbedChannel::NotificationTabbedChannel(LLFloaterNotificationsTabbed* notifications_tabbed_window) LLFloaterNotificationsTabbed::NotificationTabbedChannel::NotificationTabbedChannel(LLFloaterNotificationsTabbed* notifications_tabbed_window)
: LLNotificationChannel(LLNotificationChannel::Params().name(notifications_tabbed_window->getPathname())), : LLNotificationChannel(LLNotificationChannel::Params().name(notifications_tabbed_window->getName())),
mNotificationsTabbedWindow(notifications_tabbed_window) mNotificationsTabbedWindow(notifications_tabbed_window)
{ {
connectToChannel("Notifications"); connectToChannel("Notifications");
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
#include "lltoastpanel.h" #include "lltoastpanel.h"
LLLegacyNotificationWellWindow::WellNotificationChannel::WellNotificationChannel(LLLegacyNotificationWellWindow* well_window) LLLegacyNotificationWellWindow::WellNotificationChannel::WellNotificationChannel(LLLegacyNotificationWellWindow* well_window)
: LLNotificationChannel(LLNotificationChannel::Params().name(well_window->getPathname())) : LLNotificationChannel(LLNotificationChannel::Params().name(well_window->getName()))
, mWellWindow(well_window) , mWellWindow(well_window)
{ {
connectToChannel("Notifications"); connectToChannel("Notifications");
...@@ -45,7 +45,6 @@ LLLegacyNotificationWellWindow::WellNotificationChannel::WellNotificationChannel ...@@ -45,7 +45,6 @@ LLLegacyNotificationWellWindow::WellNotificationChannel::WellNotificationChannel
LLLegacyNotificationWellWindow::LLLegacyNotificationWellWindow(const LLSD& key) LLLegacyNotificationWellWindow::LLLegacyNotificationWellWindow(const LLSD& key)
: LLSysWellWindow(key) : LLSysWellWindow(key)
{ {
mNotificationUpdates.reset(new WellNotificationChannel(this));
} }
// static // static
...@@ -57,6 +56,8 @@ LLLegacyNotificationWellWindow* LLLegacyNotificationWellWindow::getInstance(cons ...@@ -57,6 +56,8 @@ LLLegacyNotificationWellWindow* LLLegacyNotificationWellWindow::getInstance(cons
// virtual // virtual
BOOL LLLegacyNotificationWellWindow::postBuild() BOOL LLLegacyNotificationWellWindow::postBuild()
{ {
mNotificationUpdates.reset(new WellNotificationChannel(this));
BOOL rv = LLSysWellWindow::postBuild(); BOOL rv = LLSysWellWindow::postBuild();
setTitle(getString("title_notification_well_window")); setTitle(getString("title_notification_well_window"));
return rv; return rv;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment