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

Possible fix for lock/unlock toggle loop #1956

Merged
merged 6 commits into from
Aug 1, 2024
Merged

Possible fix for lock/unlock toggle loop #1956

merged 6 commits into from
Aug 1, 2024

Conversation

neon12345
Copy link
Contributor

This is an untested draft to fix a possible lock/unlock toggle loop bug when holding both buttons.

add additional release state for locking
logic description fix
move comment
@neon12345
Copy link
Contributor Author

The logic seems to work but display information can be optimized (show longer?).

discip and others added 2 commits July 31, 2024 13:05
optimize lock/unlock display information
@neon12345
Copy link
Contributor Author

neon12345 commented Jul 31, 2024

It works now as I would expect it:

Hold both buttons when unlocked = go into locked mode and show locked until button release.
Hold both buttons when locked = go into unlocked mode and show unlocked until button release.

But the locked warning on single button press is still short.

@neon12345 neon12345 marked this pull request as ready for review July 31, 2024 11:49
@discip discip enabled auto-merge July 31, 2024 13:56
Copy link
Owner

@Ralim Ralim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me.
Showing the alert for longer could be solved by also triggering the warnUser in other paths perhaps?

@discip discip merged commit 2bce5b7 into Ralim:dev Aug 1, 2024
18 checks passed
@neon12345
Copy link
Contributor Author

@Ralim as I understand it, the message is shown as short as the button is pressed?!

@neon12345
Copy link
Contributor Author

@Ralim see #1957

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

Successfully merging this pull request may close these issues.

3 participants