summaryrefslogtreecommitdiff
path: root/protocols/YAMN/src/browser
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-10-05 13:26:35 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-10-05 13:26:35 +0300
commitf42fb54603c106122f74b43d1420435b57a15c19 (patch)
tree9fb8a7e9533a88f4ddba18986b2feed4d6c3009b /protocols/YAMN/src/browser
parentfa4cd6a02f8aa5d88b97bbac74d78a77e9b6f7d3 (diff)
fixes #3705 (YAMN: убрать опцию "уведомления → звук")
Diffstat (limited to 'protocols/YAMN/src/browser')
-rw-r--r--protocols/YAMN/src/browser/badconnect.cpp3
-rw-r--r--protocols/YAMN/src/browser/mailbrowser.cpp3
2 files changed, 2 insertions, 4 deletions
diff --git a/protocols/YAMN/src/browser/badconnect.cpp b/protocols/YAMN/src/browser/badconnect.cpp
index d871fa2eea..6e023ccf84 100644
--- a/protocols/YAMN/src/browser/badconnect.cpp
+++ b/protocols/YAMN/src/browser/badconnect.cpp
@@ -203,8 +203,7 @@ void __cdecl BadConnection(void *Param)
if (WAIT_OBJECT_0 != WaitToReadFcn(ActualAccount->AccountAccessSO))
__leave;
- if (ActualAccount->BadConnectN.Flags & YAMN_ACC_SND)
- Skin_PlaySound(YAMN_CONNECTFAILSOUND);
+ Skin_PlaySound(YAMN_CONNECTFAILSOUND);
if (ActualAccount->BadConnectN.Flags & YAMN_ACC_MSG)
ShowWindow(hBadConnect, SW_SHOWNORMAL);
diff --git a/protocols/YAMN/src/browser/mailbrowser.cpp b/protocols/YAMN/src/browser/mailbrowser.cpp
index ab0f5bd068..ca413491a7 100644
--- a/protocols/YAMN/src/browser/mailbrowser.cpp
+++ b/protocols/YAMN/src/browser/mailbrowser.cpp
@@ -708,8 +708,7 @@ void DoMailActions(HWND hDlg, CAccount *ActualAccount, struct CMailNumbers *MN,
}
if (MN->Real.SoundNC + MN->Virtual.SoundNC != 0)
- if (nflags & YAMN_ACC_SND)
- Skin_PlaySound(YAMN_NEWMAILSOUND);
+ Skin_PlaySound(YAMN_NEWMAILSOUND);
if ((nnflags & YAMN_ACC_POP) && (MN->Real.PopupRun + MN->Virtual.PopupRun == 0)) {
POPUPDATAW NoNewMailPopup = {};