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:
Chuck
2026-03-21 13:57:21 -04:00
committed by GitHub
parent 8391832c90
commit 442638dd2c

View File

@@ -647,7 +647,11 @@ class ScrollHelper:
# This ensures smooth scrolling after reset without jumping ahead # This ensures smooth scrolling after reset without jumping ahead
self.last_update_time = now self.last_update_time = now
self.logger.debug("Scroll position reset") 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: def set_scrolling_image(self, image: Image.Image) -> None:
""" """
Set a pre-rendered scrolling image and initialize all required state. Set a pre-rendered scrolling image and initialize all required state.