Option to prevent tap on status bar (#6083)

See: #5969
This commit is contained in:
Robert 2020-04-26 10:35:48 +02:00 committed by GitHub
commit 7d139263d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -844,6 +844,15 @@ function ReaderFooter:addToMainMenu(menu_items)
self:refreshFooter(true, true)
end,
},
{
text = _("Lock status bar"),
checked_func = function()
return self.settings.lock_tap
end,
callback = function()
self.settings.lock_tap = not self.settings.lock_tap
end,
},
{
text = _("Font"),
separator = true,
@ -1776,7 +1785,7 @@ function ReaderFooter:onExitFlippingMode()
end
function ReaderFooter:onTapFooter(ges)
if self.has_no_mode then
if self.has_no_mode or self.settings.lock_tap then
return
end
if self.view.flipping_visible then