From ed3e48ddc7878f1ba5326088810bf8a45cdd06a6 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 19 Sep 2024 20:45:12 +0300 Subject: code cleaning --- plugins/TabSRMM/src/container.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'plugins/TabSRMM') diff --git a/plugins/TabSRMM/src/container.cpp b/plugins/TabSRMM/src/container.cpp index 677afb8966..f155dc4bba 100644 --- a/plugins/TabSRMM/src/container.cpp +++ b/plugins/TabSRMM/src/container.cpp @@ -2298,9 +2298,6 @@ void TSAPI AutoCreateWindow(MCONTACT hContact, MEVENT hDbEvent) GetContainerNameForContact(hContact, szName, CONTAINER_NAMELEN); bool bAllowAutoCreate = false; - bool bAutoCreate = g_plugin.bAutoTabs; - bool bAutoPopup = g_plugin.bAutoPopup; - bool bAutoContainer = g_plugin.bAutoContainer; uint32_t dwStatusMask = M.GetDword("autopopupmask", -1); if (dwStatusMask == -1) @@ -2317,8 +2314,8 @@ void TSAPI AutoCreateWindow(MCONTACT hContact, MEVENT hDbEvent) } } - if (bAllowAutoCreate && (bAutoPopup || bAutoCreate)) { - if (bAutoPopup) { + if (bAllowAutoCreate && (g_plugin.bAutoPopup || g_plugin.bAutoTabs)) { + if (g_plugin.bAutoPopup) { TContainerData *pContainer = FindContainerByName(szName); if (pContainer == nullptr) pContainer = CreateContainer(szName, 0, hContact); @@ -2332,7 +2329,7 @@ void TSAPI AutoCreateWindow(MCONTACT hContact, MEVENT hDbEvent) if (M.GetByte("limittabs", 0) && !wcsncmp(pContainer->m_wszName, L"default", 6)) pContainer = FindMatchingContainer(L"default"); - if (pContainer == nullptr && bAutoContainer) + if (pContainer == nullptr && g_plugin.bAutoContainer) pContainer = CreateContainer(szName, CNT_CREATEFLAG_MINIMIZED, hContact); if (pContainer != nullptr) { -- cgit v1.2.3