Growl shouldn't notify if DnD mode is set

master
Ansariel 2015-12-01 22:48:37 +01:00
parent cc3c480a3d
commit ca31237cd6
1 changed files with 5 additions and 0 deletions

View File

@ -36,6 +36,7 @@
#include "fscommon.h"
#include "growlnotifier.h"
#include "llagent.h"
#include "llagentdata.h"
#include "llappviewer.h"
#include "llfloaterimnearbychathandler.h"
@ -407,6 +408,10 @@ bool GrowlManager::shouldNotify()
{
return false;
}
if (gAgent.isDoNotDisturb())
{
return false;
}
return (activated || (!gViewerWindow->getWindow()->getVisible() || !gFocusMgr.getAppHasFocus()));
}