diff options
author | George Hazan <ghazan@miranda.im> | 2021-02-18 19:02:13 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-02-18 19:02:13 +0300 |
commit | adaf7196c187cc926146fa65ff1f68a0a1ef3531 (patch) | |
tree | a51dd8b1ed2d8b911b72ccf4e67a3234fbc9f80d /plugins/Clist_nicer/src | |
parent | 72348ec753695b71234631f4c358ca4505a1d737 (diff) |
fixes #2744 + code cleaning
Diffstat (limited to 'plugins/Clist_nicer/src')
-rw-r--r-- | plugins/Clist_nicer/src/cluiservices.cpp | 19 |
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)) {
|