mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-10 13:02:59 +00:00
fix: add reset() alias to ScrollHelper for plugin compatibility (#290)
Multiple plugins (F1, UFC) independently called scroll_helper.reset() instead of scroll_helper.reset_scroll(), causing AttributeError and preventing scroll modes from displaying. Adding reset() as an alias prevents this class of bugs going forward. Co-authored-by: Chuck <chuck@example.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -648,6 +648,10 @@ class ScrollHelper:
|
||||
self.last_update_time = now
|
||||
self.logger.debug("Scroll position reset")
|
||||
|
||||
def reset(self) -> None:
|
||||
"""Alias for reset_scroll() for convenience."""
|
||||
self.reset_scroll()
|
||||
|
||||
def set_scrolling_image(self, image: Image.Image) -> None:
|
||||
"""
|
||||
Set a pre-rendered scrolling image and initialize all required state.
|
||||
|
||||
Reference in New Issue
Block a user