Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore countdown after short interruption #9

Closed
bNobo opened this issue Mar 18, 2020 · 3 comments
Closed

Restore countdown after short interruption #9

bNobo opened this issue Mar 18, 2020 · 3 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@bNobo
Copy link
Owner

bNobo commented Mar 18, 2020

When the user reboot its computer, the application is stopped and restarted after Windows startup. The wait remaining before screen lock is then reinitialized and the user won't be notified in time. For example, there could be only 5 minutes left before locking when the reboot occurs. The user will then stay in front of his screen for too long.

=> Store wait remaining when the PC is rebooted and "Launch at startup" is checked.
=> When the application starts, setup the wait accordingly

The easiest way to do this is to store "startTime" and restore it in InitStartTime method.

@bNobo bNobo added enhancement New feature or request good first issue Good for newcomers labels Mar 18, 2020
@bNobo
Copy link
Owner Author

bNobo commented May 19, 2020

Maybe it's not a good idea: there is no guarantee the user will stay in front of its screen while booting. In this case the countdown restoration could be annoying.

=> It is mandatory to provide an opt-out "resume countdown when it was after reboot" in order to allow user to enable this option only if he actually want it.

@bNobo bNobo mentioned this issue Jul 7, 2022
@bNobo bNobo self-assigned this Apr 18, 2024
@bNobo
Copy link
Owner Author

bNobo commented Apr 18, 2024

The business rules should be:

  • If there was less than five minutes between exit and restart of the application, then restore the time remaining of the countdown
  • If there was 5 minutes or more, then restart the countdown from zero (we should then consider the user has taken a break)

@bNobo bNobo changed the title Store time left before screen locking in case of reboot Restore countdown after short interruption Apr 20, 2024
@bNobo
Copy link
Owner Author

bNobo commented Apr 20, 2024

#128

@bNobo bNobo closed this as completed Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant