From 442638dd2cb35b6be100e0138b00b787ca53033b Mon Sep 17 00:00:00 2001 From: Chuck <33324927+ChuckBuilds@users.noreply.github.com> Date: Sat, 21 Mar 2026 13:57:21 -0400 Subject: [PATCH] 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 Co-authored-by: Claude Opus 4.6 --- src/common/scroll_helper.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/common/scroll_helper.py b/src/common/scroll_helper.py index a35ae833..254f3a06 100644 --- a/src/common/scroll_helper.py +++ b/src/common/scroll_helper.py @@ -647,7 +647,11 @@ class ScrollHelper: # This ensures smooth scrolling after reset without jumping ahead 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.