From 64303ec8f7d8fd491247a2c06ee133e4f5f3c942 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 30 Mar 2020 16:52:28 +0300 Subject: Contact lists: - all common options moved to the Clist namespace; - fixes #2281 (Add option to not clear "NotOnList" group at start); --- plugins/ShellExt/src/shlcom.cpp | 4 ++-- plugins/ShellExt/src/stdafx.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'plugins/ShellExt/src') diff --git a/plugins/ShellExt/src/shlcom.cpp b/plugins/ShellExt/src/shlcom.cpp index 12d8cf5234..1c21c710f9 100644 --- a/plugins/ShellExt/src/shlcom.cpp +++ b/plugins/ShellExt/src/shlcom.cpp @@ -235,7 +235,7 @@ void ipcGetSkinIcons(THeaderIPC * ipch) bool ipcGetSortedContacts(THeaderIPC * ipch, int* pSlot, bool bGroupMode) { // hide offliners? - bool bHideOffline = db_get_b(0, "CList", "HideOffline", 0) == 1; + bool bHideOffline = Clist::HideOffline; // do they wanna hide the offline people anyway? if (g_plugin.getByte(SHLExt_ShowNoOffline, 0) == 1) // hide offline people @@ -412,7 +412,7 @@ void __stdcall ipcService(ULONG_PTR) // if the group mode is on, check if they want the CList setting bool bGroupMode = (BST_CHECKED == g_plugin.getByte(SHLExt_UseGroups, BST_UNCHECKED)); if (bGroupMode && BST_CHECKED == g_plugin.getByte(SHLExt_UseCListSetting, BST_UNCHECKED)) - bGroupMode = db_get_b(0, "CList", "UseGroups", true) != 0; + bGroupMode = Clist::UseGroups; TSlotIPC * pct = nullptr; int iSlot = 0; diff --git a/plugins/ShellExt/src/stdafx.h b/plugins/ShellExt/src/stdafx.h index 16c08b3fc1..a40ae5dee1 100644 --- a/plugins/ShellExt/src/stdafx.h +++ b/plugins/ShellExt/src/stdafx.h @@ -9,6 +9,7 @@ #include #include +#include #include #include #include -- cgit v1.2.3