From 23e0959db2e2824c70f28f1b5dfd874fa24e1e3e Mon Sep 17 00:00:00 2001 From: Chuck Date: Fri, 20 Mar 2026 17:58:22 -0400 Subject: [PATCH] fix: add reset() alias to ScrollHelper for plugin compatibility 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: 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 a35ae8335..254f3a060 100644 --- a/src/common/scroll_helper.py +++ b/src/common/scroll_helper.py @@ -647,7 +647,11 @@ def reset_scroll(self) -> None: # 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.