From 36fc981b7cf5b168b064df151409109097fca5fa Mon Sep 17 00:00:00 2001 From: Philip Chan Date: Sat, 12 Mar 2022 22:51:22 +0800 Subject: [PATCH] Non-touch: fix crash when expanding ToC (#8892) --- frontend/apps/reader/modules/readertoc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/apps/reader/modules/readertoc.lua b/frontend/apps/reader/modules/readertoc.lua index 24e28064e..ae38cc72d 100644 --- a/frontend/apps/reader/modules/readertoc.lua +++ b/frontend/apps/reader/modules/readertoc.lua @@ -815,7 +815,7 @@ function ReaderToc:onShowToc() function toc_menu:onMenuHold(item) if not Device:isTouchDevice() and (item.state and item.state.callback) then -- non touch to expand toc - item.state.callback() + item.state.callback(item.index) else -- Match the items' width local infomessage = InfoMessage:new{