From 54b2cd28874a94509275206e8869d0d26eabd451 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 20 Mar 2023 13:40:01 +0300 Subject: fixes #3439 (Scriver/StdMsg: unified popup & tray icon settings with the same default values) --- src/core/stdmsg/src/chat_manager.cpp | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'src/core/stdmsg') 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)); -- cgit v1.2.3