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

feat: add user setting for hiss debounce time #1700

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

BlueDrink9
Copy link
Contributor

The default is far too short for me and kept triggering if I uttered "say something" or "sentence Something", or any other sibilant sentence.

The default is far too short for me and kept triggering if I uttered
"say something" or "sentence Something", or any other sibilant sentence.
@BlueDrink9 BlueDrink9 force-pushed the settings branch 2 times, most recently from ca037a9 to b993162 Compare January 22, 2025 23:21
@@ -31,7 +38,10 @@ def noise_trigger_hiss_debounce(active: bool):
"""Since the hiss noise triggers while you're talking we need to debounce it"""
global hiss_cron
if active:
hiss_cron = cron.after("100ms", lambda: actions.user.noise_trigger_hiss(active))
hiss_cron = cron.after(
str(settings.get("user.hiss_scroll_debounce_time")) + "ms",
Copy link
Member

Choose a reason for hiding this comment

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

I'd suggest using an F-string maybe, but otherwise looks good to me

Suggested change
str(settings.get("user.hiss_scroll_debounce_time")) + "ms",
f"{settings.get("user.hiss_scroll_debounce_time")}ms",

Copy link
Collaborator

Choose a reason for hiding this comment

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

hm I thought we had flynt running automatically in CI to do that

Copy link
Contributor Author

Choose a reason for hiding this comment

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

f-string would be nicer than explicitly converting, true. I originally wanted to be more explicit about the ms

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.

4 participants