diff options
author | George Hazan <george.hazan@gmail.com> | 2024-09-19 20:45:12 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-09-19 20:45:12 +0300 |
commit | ed3e48ddc7878f1ba5326088810bf8a45cdd06a6 (patch) | |
tree | a117016c4bb922c0c78d7b97e864821a6a6301dc /plugins/TabSRMM | |
parent | 0778a82d214440276277624963bc275dfc606f59 (diff) |
code cleaning
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r-- | plugins/TabSRMM/src/container.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
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) {
|