mirror of
https://github.com/koreader/koreader
synced 2024-11-04 12:00:25 +00:00
[fix] Gesture manager: default at the top (#4656)
Accidentally broken by 1d6948ddf1
This commit is contained in:
parent
1d6948ddf1
commit
7098e6ef35
@ -251,7 +251,7 @@ function ReaderGesture:buildMenu(ges, default)
|
|||||||
local return_menu = {}
|
local return_menu = {}
|
||||||
-- add default action to the top of the submenu
|
-- add default action to the top of the submenu
|
||||||
for __, entry in pairs(menu) do
|
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]])
|
local menu_entry_default = T(_("%1 (default)"), action_strings[entry[1]])
|
||||||
table.insert(return_menu, self:createSubMenu(menu_entry_default, entry[1], ges, true))
|
table.insert(return_menu, self:createSubMenu(menu_entry_default, entry[1], ges, true))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user