diff options
-rw-r--r-- | plugins/TabSRMM/src/infopanel.cpp | 19 | ||||
-rw-r--r-- | plugins/TabSRMM/src/translator.cpp | 1 |
2 files changed, 12 insertions, 8 deletions
diff --git a/plugins/TabSRMM/src/infopanel.cpp b/plugins/TabSRMM/src/infopanel.cpp index 6c7b857a3b..d90b48d121 100644 --- a/plugins/TabSRMM/src/infopanel.cpp +++ b/plugins/TabSRMM/src/infopanel.cpp @@ -505,13 +505,6 @@ void CInfoPanel::RenderIPUIN(const HDC hdc, RECT& rcItem) clr = m_ipConfig.clrs[IPFONTID_UIN];
if (tszUin[0]) {
- TCHAR temp[256];
- DBVARIANT dbv = {0};
- if ( !M->GetTString(m_dat->cache->getActiveContact(), m_dat->cache->getActiveProto(), "MirVer", &dbv)) {
- mir_sntprintf(temp, SIZEOF(temp), TranslateT(" Client: %s"), dbv.ptszVal);
- ::DBFreeVariant(&dbv);
- }
- else mir_sntprintf(temp, SIZEOF(temp), TranslateT(" Client not cached yet"));
if (m_dat->idle) {
time_t diff = time(NULL) - m_dat->idle;
@@ -520,7 +513,17 @@ void CInfoPanel::RenderIPUIN(const HDC hdc, RECT& rcItem) mir_sntprintf(szBuf, safe_sizeof(szBuf), TranslateT("%s Idle: %dh,%02dm"), tszUin, i_hrs, i_mins);
}
else _tcscpy_s (szBuf, 256, tszUin);
- _tcscat_s(szBuf, 256, temp);
+
+ if(M->GetByte("ShowClientDescription",1)) {
+ TCHAR temp[256];
+ DBVARIANT dbv = {0};
+ if ( !M->GetTString(m_dat->cache->getActiveContact(), m_dat->cache->getActiveProto(), "MirVer", &dbv)) {
+ mir_sntprintf(temp, SIZEOF(temp), TranslateT(" Client: %s"), dbv.ptszVal);
+ ::DBFreeVariant(&dbv);
+ }
+ else mir_sntprintf(temp, SIZEOF(temp), TranslateT(" Client not cached yet"));
+ _tcscat_s(szBuf, 256, temp);
+ }
SIZE sUIN;
::GetTextExtentPoint32(hdc, szBuf, lstrlen(szBuf), &sUIN);
diff --git a/plugins/TabSRMM/src/translator.cpp b/plugins/TabSRMM/src/translator.cpp index 51016a77e3..b2b4eaa52b 100644 --- a/plugins/TabSRMM/src/translator.cpp +++ b/plugins/TabSRMM/src/translator.cpp @@ -49,6 +49,7 @@ TOptionListItem m_lvItemsModPlus[] = { 0, LPGENT("Disable error popups on sending failures"), 0, LOI_TYPE_SETTING, (UINT_PTR)"adv_noErrorPopups", 1,
0, LPGENT("Automatic keyboard layout: Do not load the system default for new contacts"), 1, LOI_TYPE_SETTING, (UINT_PTR)"adv_leaveKeyboardAlone", 0,
0, LPGENT("Enable unattended send (experimental feature, required for multisend and send later) (*)"), 0, LOI_TYPE_SETTING, (UINT_PTR)"sendLaterAvail", 0,
+ 0, LPGENT("Show client description in info panel"), 0, LOI_TYPE_SETTING, (UINT_PTR)"ShowClientDescription", 0,
0, NULL, 0, 0, 0, 0
};
|