diff options
author | George Hazan <ghazan@miranda.im> | 2020-03-30 16:52:28 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-03-30 16:52:28 +0300 |
commit | 64303ec8f7d8fd491247a2c06ee133e4f5f3c942 (patch) | |
tree | fd57755518819e33a7ed03c8fef389396c0d61df /plugins/TopToolBar/src | |
parent | 1043ccf5d184151af43a417cd6e6c1a800b678dd (diff) |
Contact lists:
- all common options moved to the Clist namespace;
- fixes #2281 (Add option to not clear "NotOnList" group at start);
Diffstat (limited to 'plugins/TopToolBar/src')
-rw-r--r-- | plugins/TopToolBar/src/InternalButtons.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/TopToolBar/src/InternalButtons.cpp b/plugins/TopToolBar/src/InternalButtons.cpp index 012b96bcc1..71b571f8df 100644 --- a/plugins/TopToolBar/src/InternalButtons.cpp +++ b/plugins/TopToolBar/src/InternalButtons.cpp @@ -158,11 +158,8 @@ void InitInternalButtons() ttb.hIconHandleUp = Skin_GetIconHandle(SKINICON_OTHER_EXIT);
hExit = g_plugin.addTTB(&ttb);
- CallService(MS_TTB_SETBUTTONSTATE, (WPARAM)hShowHideOffline,
- db_get_b(0, "CList", "HideOffline", 0) ? 0 : TTBST_PUSHED);
-
- CallService(MS_TTB_SETBUTTONSTATE, (WPARAM)hGroups,
- db_get_b(0, "CList", "UseGroups", 1) ? TTBST_PUSHED : 0);
+ CallService(MS_TTB_SETBUTTONSTATE, (WPARAM)hShowHideOffline, Clist::HideOffline ? 0 : TTBST_PUSHED);
+ CallService(MS_TTB_SETBUTTONSTATE, (WPARAM)hGroups, Clist::UseGroups ? TTBST_PUSHED : 0);
CallService(MS_TTB_SETBUTTONSTATE, (WPARAM)hSounds,
db_get_b(0, "Skin", "UseSound", 1) ? TTBST_PUSHED : 0);
|