From caaf768bfac9eec37f9461c8354cb62a1216f773 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Sat, 7 Feb 2015 08:43:48 +0000 Subject: 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 --- protocols/Steam/src/steam_events.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) 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) -- cgit v1.2.3