diff options
author | Robert Pösel <robyer@seznam.cz> | 2014-12-08 22:55:24 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2014-12-08 22:55:24 +0000 |
commit | d60c379a9dcc439316b37aa135ed7c009a0c19f8 (patch) | |
tree | 7eeb8a1ae97ad6fcd19ef1f1983097a7770a293e /protocols/Steam/src/steam_dialogs.cpp | |
parent | c69812ad48e684fb85b24f1ec8f02fa019dfd68b (diff) |
Steam: Option to use big avatars (disabled by default)
Until now big avatars were used, but it's better to lower traffic etc. by default.
git-svn-id: http://svn.miranda-ng.org/main/trunk@11289 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/steam_dialogs.cpp')
-rw-r--r-- | protocols/Steam/src/steam_dialogs.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/protocols/Steam/src/steam_dialogs.cpp b/protocols/Steam/src/steam_dialogs.cpp index 6d41098da9..fe3e5fcd2e 100644 --- a/protocols/Steam/src/steam_dialogs.cpp +++ b/protocols/Steam/src/steam_dialogs.cpp @@ -149,10 +149,13 @@ INT_PTR CALLBACK CSteamProto::MainOptionsProc(HWND hwnd, UINT message, WPARAM wP ptrA password(proto->getStringA("Password"));
SetDlgItemTextA(hwnd, IDC_PASSWORD, password);
- ptrW groupName(proto->getWStringA(NULL, "DefaultGroup"));
+ ptrW groupName(proto->getWStringA("DefaultGroup"));
SetDlgItemText(hwnd, IDC_GROUP, groupName);
SendDlgItemMessage(hwnd, IDC_GROUP, EM_LIMITTEXT, 64, 0);
+ BOOL biggerAvatars = proto->getBool("UseBigAvatars", false);
+ CheckDlgButton(hwnd, IDC_BIGGER_AVATARS, biggerAvatars);
+
if (proto->IsOnline())
{
EnableWindow(GetDlgItem(hwnd, IDC_USERNAME), FALSE);
@@ -227,6 +230,9 @@ INT_PTR CALLBACK CSteamProto::MainOptionsProc(HWND hwnd, UINT message, WPARAM wP else
proto->delSetting(NULL, "DefaultGroup");
+ BOOL biggerAvatars = IsDlgButtonChecked(hwnd, IDC_BIGGER_AVATARS);
+ proto->setByte("UseBigAvatars", biggerAvatars);
+
return TRUE;
}
break;
|