return early

reviewable/pr11690/r2
SomeGuy 4 weeks ago committed by GitHub
parent cbd5534259
commit 6c921eab23
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -120,7 +120,9 @@ function ReaderHandMade:onToggleHandmadeFlows()
end
function ReaderHandMade:addToMainMenu(menu_items)
if Device:isTouchDevice() then
if not Device:isTouchDevice() then
return
end
menu_items.handmade_toc = {
text = _("Custom table of contents") .. " " .. self.custom_toc_symbol,
checked_func = function() return self.toc_enabled end,
@ -300,8 +302,6 @@ function ReaderHandMade:addToMainMenu(menu_items)
end,
}
end
end
function ReaderHandMade:updateHandmagePages()
if not self.ui.rolling then

Loading…
Cancel
Save