Cleanup LLNotify
Adds support for SUPPRESS_TOAST in payload to skip display of notices and just spew them to chat. (this was requested to be hooked up around last release, I think) Fixes Singularity->Close All Dialogs breaking notifications such that the skip button would appear when not needed. Cleans up a buncha dead code and silliness. Also Cleanup LLGroupNotify because why not?
This commit is contained in:
@@ -366,7 +366,6 @@ BOOL handle_check_pose(void* userdata) {
|
||||
}
|
||||
|
||||
|
||||
void handle_close_all_notifications(void*);
|
||||
void handle_open_message_log(void*);
|
||||
// </edit>
|
||||
|
||||
@@ -3690,17 +3689,6 @@ void handle_open_message_log(void*)
|
||||
LLFloaterMessageLog::show();
|
||||
}
|
||||
|
||||
void handle_close_all_notifications(void*)
|
||||
{
|
||||
LLView::child_list_t child_list(*(gNotifyBoxView->getChildList()));
|
||||
for(LLView::child_list_iter_t iter = child_list.begin();
|
||||
iter != child_list.end();
|
||||
iter++)
|
||||
{
|
||||
gNotifyBoxView->removeChild(*iter);
|
||||
}
|
||||
}
|
||||
|
||||
void handle_fake_away_status(void*)
|
||||
{
|
||||
bool fake_away = gSavedSettings.getBOOL("FakeAway");
|
||||
@@ -8796,7 +8784,7 @@ class SinguCloseAllDialogs : public view_listener_t
|
||||
{
|
||||
bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
|
||||
{
|
||||
handle_close_all_notifications(NULL);
|
||||
gNotifyBoxView->deleteAllChildren();
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user