diff options
author | Robert Pösel <robyer@seznam.cz> | 2015-02-07 08:43:48 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2015-02-07 08:43:48 +0000 |
commit | caaf768bfac9eec37f9461c8354cb62a1216f773 (patch) | |
tree | 2e880825648a2a116a3965059344c86ec908d302 /protocols/Steam | |
parent | 510e81b5dcee4b7655f350bc8fdcb7539d65b7a4 (diff) |
Steam: When user has disabled idle notification for protocols, reset it to 0
git-svn-id: http://svn.miranda-ng.org/main/trunk@12035 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam')
-rw-r--r-- | protocols/Steam/src/steam_events.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/protocols/Steam/src/steam_events.cpp b/protocols/Steam/src/steam_events.cpp index 3c8d758f54..c03fc3bb91 100644 --- a/protocols/Steam/src/steam_events.cpp +++ b/protocols/Steam/src/steam_events.cpp @@ -74,7 +74,16 @@ int CSteamProto::OnIdleChanged(WPARAM wParam, LPARAM lParam) // Respect user choice about (not) notifying idle to protocols if (privacy) + { + // Reset it to 0 if there is some time already + if (m_idleTS) + { + m_idleTS = 0; + delSetting("IdleTS"); + } + return 0; + } // We don't want to reset idle time when we're already in idle state if (idle && m_idleTS > 0) |