summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/modern_groupmenu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Clist_modern/modern_groupmenu.cpp')
-rw-r--r--plugins/Clist_modern/modern_groupmenu.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Clist_modern/modern_groupmenu.cpp b/plugins/Clist_modern/modern_groupmenu.cpp
index 9d2b3780e6..a19615c861 100644
--- a/plugins/Clist_modern/modern_groupmenu.cpp
+++ b/plugins/Clist_modern/modern_groupmenu.cpp
@@ -180,7 +180,7 @@ return(0);
INT_PTR HideGroupsHelper(WPARAM wParam,LPARAM lParam)
{
int newVal=!(GetWindowLongPtr(pcli->hwndContactTree,GWL_STYLE)&CLS_HIDEEMPTYGROUPS);
- ModernWriteSettingByte(NULL,"CList","HideEmptyGroups",(BYTE)newVal);
+ db_set_b(NULL,"CList","HideEmptyGroups",(BYTE)newVal);
SendMessage(pcli->hwndContactTree,CLM_SETHIDEEMPTYGROUPS,newVal,0);
return 0;
}
@@ -188,7 +188,7 @@ INT_PTR HideGroupsHelper(WPARAM wParam,LPARAM lParam)
INT_PTR UseGroupsHelper(WPARAM wParam,LPARAM lParam)
{
int newVal=!(GetWindowLongPtr(pcli->hwndContactTree,GWL_STYLE)&CLS_USEGROUPS);
- ModernWriteSettingByte(NULL,"CList","UseGroups",(BYTE)newVal);
+ db_set_b(NULL,"CList","UseGroups",(BYTE)newVal);
SendMessage(pcli->hwndContactTree,CLM_SETUSEGROUPS,newVal,0);
return 0;
}
@@ -219,7 +219,7 @@ static int OnBuildGroupMenu(WPARAM wParam,LPARAM lParam)
ZeroMemory(&mi,sizeof(mi));
mi.cbSize = sizeof(mi);
- mi.flags = CMIM_FLAGS | (ModernGetSettingByte(NULL,"CList","HideOffline",SETTING_HIDEOFFLINE_DEFAULT)?CMIF_CHECKED:0);
+ mi.flags = CMIM_FLAGS | (db_get_b(NULL,"CList","HideOffline",SETTING_HIDEOFFLINE_DEFAULT)?CMIF_CHECKED:0);
CallService(MS_CLIST_MODIFYMENUITEM, (WPARAM)hHideOfflineUsersMenuItem, (LPARAM)&mi);
ZeroMemory(&mi,sizeof(mi));