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

fix: Increase/Decrease Font Size command one step behind 🐞 #1403

Conversation

Ahattalla
Copy link
Contributor

Description

I have fixed an issue that consecutive increase/decrease font size commands, and then reversing once continues in the same direction on the first execution. Subsequent times works as expected. As an example:

Key Pressed Result
⌘+ Font increases
⌘+ Font increases
⌘+ Font increases
⌘- Font increases
⌘- Font decreases
⌘- Font decreases
⌘+ Font decreases
⌘+ Font increases

I have set the font size to be the one from the newValue received, as when accessing it directly from settingsFont it will get the old one.

Related Issues

Checklist

  • I read and understood the contributing guide as well as the code of conduct
  • The issues this PR addresses are related to each other
  • My changes generate no new warnings
  • My code builds and runs on my machine
  • My changes are all related to the related issue above
  • I documented my code

Screenshots

Screen.Recording.2023-08-13.at.7.43.05.PM.mov

@Ahattalla Ahattalla changed the title fix: Increase/Decrease Font Size command one step behind fix: Increase/Decrease Font Size command one step behind 🐞 Aug 13, 2023
Copy link
Collaborator

@thecoolwinter thecoolwinter left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

Copy link
Collaborator

@austincondiff austincondiff left a comment

Choose a reason for hiding this comment

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

Good catch. Thanks for the contribution @Ahattalla!

@austincondiff austincondiff merged commit 9cd3907 into CodeEditApp:main Aug 14, 2023
2 checks passed
@austincondiff
Copy link
Collaborator

@allcontributors add @Ahattalla for bug

@allcontributors
Copy link
Contributor

@austincondiff

I've put up a pull request to add @Ahattalla! 🎉

@thecoolwinter thecoolwinter added the bug Something isn't working label Dec 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐞 Increase/Decrease Font Size command one step behind
3 participants