From d77680e9f4195813bddecd963758a0cd98bdeb4c Mon Sep 17 00:00:00 2001 From: Ansariel Date: Mon, 1 Jul 2024 17:49:15 +0200 Subject: [PATCH] Maybe we need this... not sure, but probably going to be needed for LUA script support later anyway --- indra/llui/llnotifications.cpp | 3 +-- indra/llui/llnotifications.h | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/indra/llui/llnotifications.cpp b/indra/llui/llnotifications.cpp index 052987b69f..a8d12a77d2 100644 --- a/indra/llui/llnotifications.cpp +++ b/indra/llui/llnotifications.cpp @@ -1263,8 +1263,7 @@ LLNotifications::LLNotifications() : LLNotificationChannelBase(LLNotificationFilters::includeEverything), mIgnoreAllNotifications(false) { - // Disable test API - //mListener.reset(new LLNotificationsListener(*this)); + mListener.reset(new LLNotificationsListener(*this)); LLUICtrl::CommitCallbackRegistry::currentRegistrar().add("Notification.Show", boost::bind(&LLNotifications::addFromCallback, this, _2)); // touch the instance tracker for notification channels, so that it will still be around in our destructor diff --git a/indra/llui/llnotifications.h b/indra/llui/llnotifications.h index 295b60a720..965ce9c67e 100644 --- a/indra/llui/llnotifications.h +++ b/indra/llui/llnotifications.h @@ -98,8 +98,7 @@ #include "llrefcount.h" #include "llsdparam.h" -// Disable test API -//#include "llnotificationslistener.h" +#include "llnotificationslistener.h" class LLAvatarName; typedef enum e_notification_priority @@ -999,8 +998,7 @@ private: bool mIgnoreAllNotifications; - // Disable test API - //std::unique_ptr mListener; + std::unique_ptr mListener; std::vector mDefaultChannels; };