mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[fix] Gesture manager: default at the top (#4656)
Accidentally broken by 1d6948ddf1
This commit is contained in:
@@ -251,7 +251,7 @@ function ReaderGesture:buildMenu(ges, default)
|
||||
local return_menu = {}
|
||||
-- add default action to the top of the submenu
|
||||
for __, entry in pairs(menu) do
|
||||
if entry[2] == default then
|
||||
if entry[1] == default then
|
||||
local menu_entry_default = T(_("%1 (default)"), action_strings[entry[1]])
|
||||
table.insert(return_menu, self:createSubMenu(menu_entry_default, entry[1], ges, true))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user