Skip to content

Commit

Permalink
Fixes issue #10
Browse files Browse the repository at this point in the history
  • Loading branch information
ryannewington committed Feb 26, 2019
1 parent d047454 commit 1a41dae
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion src/Lithnet.IdleLogoff/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public static int WarningPeriod
}
}

return retval;
return Math.Max(retval, 0);
}
set => SaveSetting("WarningPeriod", value, RegistryValueKind.DWord);
}
Expand Down
5 changes: 0 additions & 5 deletions src/Lithnet.IdleLogoff/frmSettings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1a41dae

Please sign in to comment.