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

BUGFIX: don't check lastAction for non-toggle, non-save hotkey actions #366

Merged
merged 1 commit into from
Jun 22, 2023

Conversation

bsstephan
Copy link
Contributor

the top-level check was actually somewhat redundant now that I fixed lastAction, since the toggles checked it anyway, but we can still use a similar approach to not save unless we need to.

but now, we also don't interfere with e.g. HOTKEY_HOME_BUTTON, which should always take effect as long as the hotkey is pressed, even if we've done it in past cycles --- but it shouldn't save, so don't request it.

fixes #360

the top-level check was actually somewhat redundant now that I fixed
lastAction, since the toggles checked it anyway, but we can still use a
similar approach to not save unless we need to.

but now, we also don't interfere with e.g. HOTKEY_HOME_BUTTON, which
*should* always take effect as long as the hotkey is pressed, even if
we've done it in past cycles --- but it shouldn't save, so don't request
it.

fixes OpenStickCommunity#360
Copy link
Contributor

@arntsonl arntsonl left a comment

Choose a reason for hiding this comment

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

Looks good!

@arntsonl arntsonl merged commit de836ed into OpenStickCommunity:main Jun 22, 2023
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.

HOTKEY_HOME_BUTTON doesn't do anything because I broke it
2 participants