diff options
author | George Hazan <ghazan@miranda.im> | 2022-09-24 20:48:50 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-09-24 20:50:01 +0300 |
commit | 87688568055a37961b1fa9cfe31cfaef064d3e1c (patch) | |
tree | 6bdef487722a687f84cc1d74de439fcabb240a9a /src/core/stdmsg | |
parent | 4c610be444c52c9734681d97f8368bd6eb693da7 (diff) |
some common chat options exported directly from the core
Diffstat (limited to 'src/core/stdmsg')
-rw-r--r-- | src/core/stdmsg/src/chat_manager.cpp | 4 | ||||
-rw-r--r-- | src/core/stdmsg/src/tabs.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/core/stdmsg/src/chat_manager.cpp b/src/core/stdmsg/src/chat_manager.cpp index 9fd934ded6..b72f53acd7 100644 --- a/src/core/stdmsg/src/chat_manager.cpp +++ b/src/core/stdmsg/src/chat_manager.cpp @@ -79,7 +79,7 @@ static void OnFlashHighlight(SESSION_INFO *si, int bInactive) if (g_Settings.bTabsEnable) g_pTabDialog->SetMessageHighlight(si->pDlg); - else if (g_Settings.bFlashWindowHighlight) + else if (Chat::bFlashWindowHighlight) si->pDlg->StartFlash(); } @@ -90,7 +90,7 @@ static void OnFlashWindow(SESSION_INFO *si, int bInactive) if (g_Settings.bTabsEnable) g_pTabDialog->SetTabHighlight(si->pDlg); - else if (g_Settings.bFlashWindow) + else if (Chat::bFlashWindow) si->pDlg->StartFlash(); } diff --git a/src/core/stdmsg/src/tabs.cpp b/src/core/stdmsg/src/tabs.cpp index 61c2426641..d60bec7634 100644 --- a/src/core/stdmsg/src/tabs.cpp +++ b/src/core/stdmsg/src/tabs.cpp @@ -371,7 +371,7 @@ void CTabbedWindow::SetMessageHighlight(CMsgDialog *pDlg) pDlg->m_si->wState |= GC_EVENT_HIGHLIGHT; FixTabIcons(pDlg); - if (g_Settings.bFlashWindowHighlight && pDlg != m_tab.GetActivePage()) + if (Chat::bFlashWindowHighlight && pDlg != m_tab.GetActivePage()) pDlg->StartFlash(); } @@ -381,7 +381,7 @@ void CTabbedWindow::SetTabHighlight(CMsgDialog *pDlg) return; FixTabIcons(pDlg); - if (g_Settings.bFlashWindow && pDlg != m_tab.GetActivePage()) + if (Chat::bFlashWindow && pDlg != m_tab.GetActivePage()) pDlg->StartFlash(); } |