From 9b8ddb3a0593a8d62d38c0dff50813406f069d0a Mon Sep 17 00:00:00 2001 From: Matteo Benedetto Date: Mon, 23 Mar 2026 23:55:47 +0100 Subject: [PATCH] =?UTF-8?q?ui:=20fix=20PAGE=5FUP/PAGE=5FDOWN=20crash=20?= =?UTF-8?q?=E2=80=94=20use=20self.=5Flayout.page=5Fsize=20not=20theme.PAGE?= =?UTF-8?q?=5FSIZE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/r36s_dlna_browser/ui/sdl_app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/r36s_dlna_browser/ui/sdl_app.py b/src/r36s_dlna_browser/ui/sdl_app.py index ad02452..82aa266 100644 --- a/src/r36s_dlna_browser/ui/sdl_app.py +++ b/src/r36s_dlna_browser/ui/sdl_app.py @@ -341,11 +341,11 @@ class SDLApp: self._adjust_browse_scroll() self._mark_dirty() elif action == Action.PAGE_UP and n: - self._state.cursor = max(0, self._state.cursor - theme.PAGE_SIZE) + self._state.cursor = max(0, self._state.cursor - self._layout.page_size) self._adjust_browse_scroll() self._mark_dirty() elif action == Action.PAGE_DOWN and n: - self._state.cursor = min(n - 1, self._state.cursor + theme.PAGE_SIZE) + self._state.cursor = min(n - 1, self._state.cursor + self._layout.page_size) self._adjust_browse_scroll() self._mark_dirty() elif action == Action.CONFIRM: