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

Optimize LabelBase text setter #217

Merged
merged 1 commit into from
Dec 9, 2024
Merged

Optimize LabelBase text setter #217

merged 1 commit into from
Dec 9, 2024

Conversation

shubham0x13
Copy link
Contributor

Added a check to skip redundant _set_text calls if the text hasn't changed.

Copy link
Contributor

@FoamyGuy FoamyGuy left a comment

Choose a reason for hiding this comment

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

Thank you! This saves a decent little chunk of time when the text is already set to the desired string.

@FoamyGuy FoamyGuy merged commit 075934a into adafruit:main Dec 9, 2024
1 check passed
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Dec 17, 2024
Updating https://github.com/adafruit/Adafruit_CircuitPython_VL6180X to 1.4.14 from 1.4.13:
  > Merge pull request adafruit/Adafruit_CircuitPython_VL6180X#33 from jposada202020/adding_displayio_example

Updating https://github.com/adafruit/Adafruit_CircuitPython_Display_Text to 3.2.1 from 3.2.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_Display_Text#217 from shubham0x13/main

Updating https://github.com/adafruit/Adafruit_CircuitPython_Bundle/circuitpython_library_list.md to NA from NA:
  > Updated download stats for the libraries
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.

2 participants