Skip to content

Commit

Permalink
修复 #15
Browse files Browse the repository at this point in the history
  • Loading branch information
GiantappMan committed Aug 25, 2022
1 parent 54305ab commit efe6b62
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/EyeNurse/EyeNurse.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<UseWPF>true</UseWPF>
<Version>2.0.5</Version>
<Version>2.0.6</Version>
<Company>Giantapp Studio</Company>
<Authors>Giantapp Studio</Authors>
<Description>https://eyenurse.giantapp.cn</Description>
Expand Down
4 changes: 4 additions & 0 deletions src/EyeNurse/ViewModels/EyeNurseViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ private void SystemEvents_SessionSwitch(object sender, Win32.SessionSwitchEventA
{
if (DateTime.Now - _lockTime > _setting.ResetTimeout)
{
if (_isResting)
{
CloseLockScreen();
}
_lockTime = null;
Reset();
}
Expand Down

0 comments on commit efe6b62

Please sign in to comment.