2143: Don't push notification when active r=Ryozuki a=ardadem

In the game we already have highlighted text and sounds, we don't need to bother with notifications.

Co-authored-by: Arda Demir <ddmirarda@gmail.com>
This commit is contained in:
bors[bot] 2020-04-14 22:00:51 +00:00 committed by GitHub
commit 6fe6ff70b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3786,7 +3786,7 @@ void CClient::LoadFont()
void CClient::Notify(const char *pTitle, const char *pMessage)
{
if(!g_Config.m_ClShowNotifications)
if(m_pGraphics->WindowActive() || !g_Config.m_ClShowNotifications)
return;
NotificationsNotify(pTitle, pMessage);