summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-03-20 13:40:01 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-03-20 13:40:01 +0300
commit54b2cd28874a94509275206e8869d0d26eabd451 (patch)
tree57730f7a26ab56a8f62bcadd66a88c96f2bff68a /src/core
parent43eaa430b1e56d4465bfbbbb9f8540f14bc2bae2 (diff)
fixes #3439 (Scriver/StdMsg: unified popup & tray icon settings with the same default values)
Diffstat (limited to 'src/core')
-rw-r--r--src/core/stdmsg/src/chat_manager.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/core/stdmsg/src/chat_manager.cpp b/src/core/stdmsg/src/chat_manager.cpp
index d3e0da1969..a06c0a89f6 100644
--- a/src/core/stdmsg/src/chat_manager.cpp
+++ b/src/core/stdmsg/src/chat_manager.cpp
@@ -94,20 +94,6 @@ static void OnFlashWindow(SESSION_INFO *si, int bInactive)
si->pDlg->StartFlash();
}
-static BOOL DoTrayIcon(SESSION_INFO *si, GCEVENT *gce)
-{
- if (gce->iType & g_Settings.dwTrayIconFlags)
- return oldDoTrayIcon(si, gce);
- return TRUE;
-}
-
-static BOOL DoPopup(SESSION_INFO *si, GCEVENT *gce)
-{
- if (gce->iType & g_Settings.dwPopupFlags)
- return oldDoPopup(si, gce);
- return TRUE;
-}
-
static void OnLoadSettings()
{
g_Settings.iX = db_get_dw(0, CHAT_MODULE, "roomx", -1);
@@ -221,8 +207,6 @@ void Load_ChatModule()
Srmm_CreateHotkey(LPGEN("Messaging"), LPGEN("Send message"));
- oldDoPopup = g_chatApi.DoPopup; g_chatApi.DoPopup = DoPopup;
- oldDoTrayIcon = g_chatApi.DoTrayIcon; g_chatApi.DoTrayIcon = DoTrayIcon;
g_chatApi.ReloadSettings();
g_hMenu = LoadMenu(g_plugin.getInst(), MAKEINTRESOURCE(IDR_MENU));