mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Option to disable show bottom menu on top menu activation (#3316)
This commit is contained in:
@@ -305,7 +305,9 @@ end
|
||||
|
||||
function ReaderMenu:onSwipeShowMenu(ges)
|
||||
if self.activation_menu ~= "tap" and ges.direction == "south" then
|
||||
self.ui:handleEvent(Event:new("ShowConfigMenu"))
|
||||
if G_reader_settings:nilOrTrue("show_bottom_menu") then
|
||||
self.ui:handleEvent(Event:new("ShowConfigMenu"))
|
||||
end
|
||||
self.ui:handleEvent(Event:new("ShowReaderMenu"))
|
||||
return true
|
||||
end
|
||||
@@ -313,7 +315,9 @@ end
|
||||
|
||||
function ReaderMenu:onTapShowMenu()
|
||||
if self.activation_menu ~= "swipe" then
|
||||
self.ui:handleEvent(Event:new("ShowConfigMenu"))
|
||||
if G_reader_settings:nilOrTrue("show_bottom_menu") then
|
||||
self.ui:handleEvent(Event:new("ShowConfigMenu"))
|
||||
end
|
||||
self.ui:handleEvent(Event:new("ShowReaderMenu"))
|
||||
return true
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user