[fix] Gesture manager: default at the top (#4656)

Accidentally broken by 1d6948ddf1
pull/4658/head
Frans de Jonge 5 years ago committed by GitHub
parent 1d6948ddf1
commit 7098e6ef35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save