From a76776079b6d15e92dffd0c5c0016389092b1c8b Mon Sep 17 00:00:00 2001 From: aunsane Date: Sun, 25 Feb 2018 14:45:28 +0300 Subject: Fixes related with 7fc01c9 --- protocols/Steam/src/steam_options.cpp | 7 +++---- protocols/Steam/src/steam_options.h | 3 +-- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'protocols/Steam') diff --git a/protocols/Steam/src/steam_options.cpp b/protocols/Steam/src/steam_options.cpp index bfc0255b09..88716ca0c9 100644 --- a/protocols/Steam/src/steam_options.cpp +++ b/protocols/Steam/src/steam_options.cpp @@ -3,8 +3,8 @@ CSteamOptionsMain::CSteamOptionsMain(CSteamProto *proto, int idDialog, HWND hwndParent) : CSteamDlgBase(proto, idDialog, false), m_username(this, IDC_USERNAME), m_password(this, IDC_PASSWORD), - m_group(this, IDC_GROUP), m_biggerAvatars(this, IDC_BIGGER_AVATARS), m_showChatEvents(this, IDC_SHOW_CHAT_EVENTS), - m_pollingErrorLimit(this, IDC_POLLINGERRORLIMIT), m_pollingErrorLimitSpin(this, IDC_POLLINGERRORLIMITSPIN) + m_group(this, IDC_GROUP), m_biggerAvatars(this, IDC_BIGGER_AVATARS), + m_showChatEvents(this, IDC_SHOW_CHAT_EVENTS), m_pollingErrorLimit(this, IDC_POLLINGERRORLIMITSPIN) { SetParent(hwndParent); @@ -27,8 +27,7 @@ void CSteamOptionsMain::OnInitDialog() SendMessage(m_password.GetHwnd(), EM_LIMITTEXT, 64, 0); SendMessage(m_group.GetHwnd(), EM_LIMITTEXT, 64, 0); - m_pollingErrorLimitSpin.SetRange(255, 0); - m_pollingErrorLimitSpin.SetPosition(m_proto->getByte("PollingErrorsLimit", STEAM_API_POLLING_ERRORS_LIMIT)); + m_pollingErrorLimit.SetRange(255, 0); } void CSteamOptionsMain::OnApply() diff --git a/protocols/Steam/src/steam_options.h b/protocols/Steam/src/steam_options.h index 388bf2c70a..d0aaf03bd9 100644 --- a/protocols/Steam/src/steam_options.h +++ b/protocols/Steam/src/steam_options.h @@ -11,8 +11,7 @@ private: CCtrlCheck m_biggerAvatars; CCtrlCheck m_showChatEvents; - CCtrlEdit m_pollingErrorLimit; - CCtrlSpin m_pollingErrorLimitSpin; + CCtrlSpin m_pollingErrorLimit; protected: CSteamOptionsMain(CSteamProto *proto, int idDialog, HWND hwndParent = NULL); -- cgit v1.2.3