2
0
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:
Frans de Jonge 2019-02-24 17:36:15 +01:00 committed by GitHub
parent 1d6948ddf1
commit 7098e6ef35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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))