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

prevent hotkey from being spammed when held #109

Merged
merged 2 commits into from
Oct 31, 2023
Merged

Conversation

matthias-luger
Copy link
Contributor

fixes #108

@Ekwav This fix prevents the hotkey logic from being spammed when the button is held.
A) If this is implemented the message when no best flip was found should be changed, as it currently recommends you to keep holding the button, which wouldn't do anything anymore.
B) This might be disliked as the button now has to be spammed by users instead of being conveniently held down.

Wouldn't it be better to just increase the delay between each execution? (Currently the delay is only applied after a flip has been successfully found, I think that also might be an oversight)

Copy link
Member

@Ekwav Ekwav left a comment

Choose a reason for hiding this comment

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

LGTM :)

@Ekwav Ekwav merged commit ed5052c into main Oct 31, 2023
1 check passed
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.

Prevent hot-key from triggering more than once
2 participants