From efe6b62e707b465c2869a04403559c87754fe9cd Mon Sep 17 00:00:00 2001 From: DaZiYuan Date: Thu, 25 Aug 2022 22:46:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20https://github.com/DaZiYua?= =?UTF-8?q?n/eye-nurse/issues/15?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/EyeNurse/EyeNurse.csproj | 2 +- src/EyeNurse/ViewModels/EyeNurseViewModel.cs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/EyeNurse/EyeNurse.csproj b/src/EyeNurse/EyeNurse.csproj index 23d19a2..17d634c 100644 --- a/src/EyeNurse/EyeNurse.csproj +++ b/src/EyeNurse/EyeNurse.csproj @@ -4,7 +4,7 @@ WinExe net6.0-windows true - 2.0.5 + 2.0.6 Giantapp Studio Giantapp Studio https://eyenurse.giantapp.cn diff --git a/src/EyeNurse/ViewModels/EyeNurseViewModel.cs b/src/EyeNurse/ViewModels/EyeNurseViewModel.cs index 01db6af..1c6dcc8 100644 --- a/src/EyeNurse/ViewModels/EyeNurseViewModel.cs +++ b/src/EyeNurse/ViewModels/EyeNurseViewModel.cs @@ -66,6 +66,10 @@ private void SystemEvents_SessionSwitch(object sender, Win32.SessionSwitchEventA { if (DateTime.Now - _lockTime > _setting.ResetTimeout) { + if (_isResting) + { + CloseLockScreen(); + } _lockTime = null; Reset(); }