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(); }