summaryrefslogtreecommitdiff
path: root/plugins/Clist_nicer
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-02-18 19:02:13 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-02-18 19:02:13 +0300
commitadaf7196c187cc926146fa65ff1f68a0a1ef3531 (patch)
treea51dd8b1ed2d8b911b72ccf4e67a3234fbc9f80d /plugins/Clist_nicer
parent72348ec753695b71234631f4c358ca4505a1d737 (diff)
fixes #2744 + code cleaning
Diffstat (limited to 'plugins/Clist_nicer')
-rw-r--r--plugins/Clist_nicer/src/cluiservices.cpp19
1 files changed, 8 insertions, 11 deletions
diff --git a/plugins/Clist_nicer/src/cluiservices.cpp b/plugins/Clist_nicer/src/cluiservices.cpp
index 43d6ed3c4a..ff9eb5a1a1 100644
--- a/plugins/Clist_nicer/src/cluiservices.cpp
+++ b/plugins/Clist_nicer/src/cluiservices.cpp
@@ -160,8 +160,8 @@ void CluiProtocolStatusChanged(int, const char*)
partCount++;
}
+
// update the clui button
-
int iIcon = 0;
int wStatus = 0;
ptrA szPrimaryStatus(g_plugin.getStringA("PrimaryStatus"));
@@ -176,18 +176,15 @@ void CluiProtocolStatusChanged(int, const char*)
g_maxStatus = wStatus;
}
- /*
- * this is used globally (actually, by the clist control only) to determine if
- * any protocol is "in connection" state. If true, then the clist discards redraws
- * and uses timer based sort and redraw handling. This can improve performance
- * when connecting multiple protocols significantly.
- */
+ // this is used globally (actually, by the clist control only) to determine if
+ // any protocol is "in connection" state. If true, then the clist discards redraws
+ // and uses timer based sort and redraw handling. This can improve performance
+ // when connecting multiple protocols significantly.
+
wchar_t *szStatus = Clist_GetStatusModeDescription(wStatus, 0);
- /*
- * set the global status icon and display the global (most online) status mode on the
- * status mode button
- */
+ // set the global status icon and display the global (most online) status mode on the
+ // status mode button
if (szStatus && g_clistApi.hwndContactList) {
HWND hwndClistBtn = GetDlgItem(g_clistApi.hwndContactList, IDC_TBGLOBALSTATUS);
if (IsWindow(hwndClistBtn)) {