diff options
author | aunsane <aunsane@gmail.com> | 2018-01-17 23:11:36 +0300 |
---|---|---|
committer | aunsane <aunsane@gmail.com> | 2018-01-17 23:11:36 +0300 |
commit | fc14cd04c3894702603bb4db7e56258608c5c8d7 (patch) | |
tree | 43b5315d3f20090cf4ebb4e5828a573bb6ec6ff7 /protocols/Steam/src/steam_events.cpp | |
parent | bf928bd6cfa3df39b4cfda0ff5a5825105cf4a56 (diff) |
Steam: fixed #1106
Diffstat (limited to 'protocols/Steam/src/steam_events.cpp')
-rw-r--r-- | protocols/Steam/src/steam_events.cpp | 30 |
1 files changed, 4 insertions, 26 deletions
diff --git a/protocols/Steam/src/steam_events.cpp b/protocols/Steam/src/steam_events.cpp index 0a5f7d4fde..9c37a9d74e 100644 --- a/protocols/Steam/src/steam_events.cpp +++ b/protocols/Steam/src/steam_events.cpp @@ -22,35 +22,15 @@ INT_PTR CSteamProto::OnAccountManagerInit(WPARAM, LPARAM lParam) return (INT_PTR)(CSteamOptionsMain::CreateAccountManagerPage(this, (HWND)lParam))->GetHwnd(); } -int CSteamProto::OnOptionsInit(WPARAM wParam, LPARAM) -{ - OPTIONSDIALOGPAGE odp = { 0 }; - odp.hInstance = g_hInstance; - odp.szTitle.w = m_tszUserName; - odp.flags = ODPF_BOLDGROUPS | ODPF_UNICODE; - odp.szGroup.w = LPGENW("Network"); - - odp.szTab.w = LPGENW("Account"); - odp.pDialog = CSteamOptionsMain::CreateOptionsPage(this); - Options_AddPage(wParam, &odp); - - odp.szTab.w = LPGENW("Blocked contacts"); - odp.pDialog = CSteamOptionsBlockList::CreateOptionsPage(this); - Options_AddPage(wParam, &odp); - return 0; -} - int CSteamProto::OnIdleChanged(WPARAM, LPARAM lParam) { bool idle = (lParam & IDF_ISIDLE) != 0; bool privacy = (lParam & IDF_PRIVACY) != 0; // Respect user choice about (not) notifying idle to protocols - if (privacy) - { + if (privacy) { // Reset it to 0 if there is some time already - if (m_idleTS) - { + if (m_idleTS) { m_idleTS = 0; delSetting("IdleTS"); } @@ -62,8 +42,7 @@ int CSteamProto::OnIdleChanged(WPARAM, LPARAM lParam) if (idle && m_idleTS > 0) return 0; - if (idle) - { + if (idle) { // User started being idle MIRANDA_IDLE_INFO mii; Idle_GetInfo(mii); @@ -72,8 +51,7 @@ int CSteamProto::OnIdleChanged(WPARAM, LPARAM lParam) m_idleTS = now() - mii.idleTime * 60; setDword("IdleTS", m_idleTS); } - else - { + else { // User stopped being idle m_idleTS = 0; delSetting("IdleTS"); |