diff options
author | George Hazan <george.hazan@gmail.com> | 2024-10-22 20:16:42 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-10-22 20:16:42 +0300 |
commit | acbe9c08e949be95b5549d716232ff7a58785528 (patch) | |
tree | 95926b42117f06e01f0655fc14e3d5229d2591e5 /plugins/TabSRMM | |
parent | 5f68e67d61e0c0ffa6aacd80eda9e0e5c531cc7a (diff) |
fixes #4751 (Mute:Always blocks popups, sounds & blinking)
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r-- | plugins/TabSRMM/src/chat_tools.cpp | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/plugins/TabSRMM/src/chat_tools.cpp b/plugins/TabSRMM/src/chat_tools.cpp index 166468ab11..f9686fa2da 100644 --- a/plugins/TabSRMM/src/chat_tools.cpp +++ b/plugins/TabSRMM/src/chat_tools.cpp @@ -265,18 +265,20 @@ BOOL DoSoundsFlashPopupTrayStuff(SESSION_INFO *si, GCEVENT *gce, BOOL bHighlight if (dat->m_pWnd)
dat->m_pWnd->Invalidate();
}
-
- if (iMuteMode != CHATMODE_MUTE) {
- auto sound = si->getSoundName(gce->iType);
- if (dat) {
- bInactive = dat->m_pContainer->m_hwnd != GetForegroundWindow();
- bActiveTab = (dat->m_pContainer->m_hwndActive == dat->GetHwnd());
- if (sound && dat->m_pContainer->MustPlaySound(dat))
- Skin_PlaySound(sound);
- }
- else if (sound)
+
+ // if group chat is always muted, we don't play sounds & flash window
+ if (iMuteMode == CHATMODE_MUTE)
+ return;
+
+ auto sound = si->getSoundName(gce->iType);
+ if (dat) {
+ bInactive = dat->m_pContainer->m_hwnd != GetForegroundWindow();
+ bActiveTab = (dat->m_pContainer->m_hwndActive == dat->GetHwnd());
+ if (sound && dat->m_pContainer->MustPlaySound(dat))
Skin_PlaySound(sound);
}
+ else if (sound)
+ Skin_PlaySound(sound);
// dialog event processing
if (dat) {
|