Maybe we need this... not sure, but probably going to be needed for LUA script support later anyway

master
Ansariel 2024-07-01 17:49:15 +02:00
parent 7c519ee4d5
commit d77680e9f4
2 changed files with 3 additions and 6 deletions

View File

@ -1263,8 +1263,7 @@ LLNotifications::LLNotifications()
: LLNotificationChannelBase(LLNotificationFilters::includeEverything),
mIgnoreAllNotifications(false)
{
// <FS:Ansariel> 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

View File

@ -98,8 +98,7 @@
#include "llrefcount.h"
#include "llsdparam.h"
// <FS:Ansariel> Disable test API
//#include "llnotificationslistener.h"
#include "llnotificationslistener.h"
class LLAvatarName;
typedef enum e_notification_priority
@ -999,8 +998,7 @@ private:
bool mIgnoreAllNotifications;
// <FS:Ansariel> Disable test API
//std::unique_ptr<LLNotificationsListener> mListener;
std::unique_ptr<LLNotificationsListener> mListener;
std::vector<LLNotificationChannelPtr> mDefaultChannels;
};