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

Sites are blocked or unblocked based on when the "Save Options" button was last pressed, not on the current time. #116

Open
rl2939 opened this issue Sep 12, 2023 · 1 comment

Comments

@rl2939
Copy link

rl2939 commented Sep 12, 2023

Problem

Lets define two blocks of time:
Block A: When sites are supposed to be blocked. (ex: 7 pm - 1:59 pm)
Block B: When sites are supposed to be unblocked. (ex: 2 pm - 6:59 pm)

Lets then say that I create a site blocklist and save my changes when Block A is active (ex: 1:05 pm).
When the time changes to where Block B is active (ex: 2:05 pm) and I visit a site in the blocklist, it displays a block notice as if I visited the site during Block A.

If I then hit the save button on the options menu during Block B, the sites will become unblocked. However, if I then visit a site on my blocklist when Block A is active (ex: 8 pm), the sites will still be unblocked until I go the options menu again and hit the save button (during block A).

Expected Behavior

The sites are blocked and unblocked at the times selected in the options menu.

Actual Behavior

The sites are blocked or unblocked based on the time I last hit the block button.

Other information

Version: 0.4.9
Browser: Firefox

A potential solution may be to run the function that pressing the "Save Options" does every minute in the background.

Related issues: #36 and #39. It is not a duplicate of these issues, those issues either have the blocklist stuck on blocking or unblocking mode all the time, not blocking or unblocking based on the time the save button is pressed.

@shubhams
Copy link

shubhams commented Aug 8, 2024

I can reproduce this problem on macOS!
Version: 0.5.2.1
Browser: Firefox

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants