diff options
Diffstat (limited to 'plugins/TabSRMM/src/globals.cpp')
-rw-r--r-- | plugins/TabSRMM/src/globals.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/plugins/TabSRMM/src/globals.cpp b/plugins/TabSRMM/src/globals.cpp index 1d0284ce35..c2216f2caa 100644 --- a/plugins/TabSRMM/src/globals.cpp +++ b/plugins/TabSRMM/src/globals.cpp @@ -140,8 +140,6 @@ void CGlobals::reloadSystemModulesChanged() g_iButtonsBarGap = M.GetByte("ButtonsBarGap", 1);
m_hwndClist = (HWND)CallService(MS_CLUI_GETHWND, 0, 0);
- bMetaEnabled = abs(M.GetByte(META_PROTO, "Enabled", -1));
-
g_PopupAvail = ServiceExists(MS_POPUP_ADDPOPUPT);
CLISTMENUITEM mi = { sizeof(mi) };
@@ -374,6 +372,7 @@ int CGlobals::ModulesLoaded(WPARAM wParam, LPARAM lParam) HookEvent(ME_FONT_RELOAD, ::FontServiceFontsChanged);
HookEvent(ME_TTB_MODULELOADED, TopToolbarLoaded);
+ HookEvent(ME_MC_ENABLED, &CContactCache::cacheUpdateMetaChanged);
HookEvent(ME_MC_DEFAULTTCHANGED, MetaContactEvent);
HookEvent(ME_MC_SUBCONTACTSCHANGED, MetaContactEvent);
return 0;
@@ -424,13 +423,6 @@ int CGlobals::DBSettingChanged(WPARAM hContact, LPARAM lParam) }
}
- if (hContact == 0 && !lstrcmpA(setting, "Enabled")) {
- if (!lstrcmpA(cws->szModule, META_PROTO)) { // catch the disabled meta contacts
- PluginConfig.bMetaEnabled = abs(M.GetByte(META_PROTO, "Enabled", -1));
- CContactCache::cacheUpdateMetaChanged();
- }
- }
-
if (lstrcmpA(cws->szModule, "CList") && (szProto == NULL || lstrcmpA(cws->szModule, szProto)))
return 0;
|