Skip to content

Commit

Permalink
Merge pull request #217 from shubham0x13/main
Browse files Browse the repository at this point in the history
Optimize LabelBase text setter
  • Loading branch information
FoamyGuy authored Dec 9, 2024
2 parents f71370f + b6541e6 commit 075934a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions adafruit_display_text/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,8 @@ def text(self) -> str:

@text.setter # Cannot set color or background color with text setter, use separate setter
def text(self, new_text: str) -> None:
if new_text == self._text:
return
self._set_text(new_text, self.scale)

@property
Expand Down

0 comments on commit 075934a

Please sign in to comment.