Non-touch: fix crash when expanding ToC (#8892)

reviewable/pr8894/r1
Philip Chan 2 years ago committed by GitHub
parent 4f849c23ab
commit 36fc981b7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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{

Loading…
Cancel
Save