[UX] Move "Go back to previous location" up one menu level (#3615)

pull/3617/head
Frans de Jonge 7 years ago committed by GitHub
parent 6e87735b79
commit acacd7a7f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -84,12 +84,6 @@ function ReaderLink:addToMainMenu(menu_items)
menu_items.follow_links = {
text = _("Links"),
sub_item_table = {
{
text = _("Go back to previous location"),
enabled_func = function() return #self.location_stack > 0 end,
callback = function() self:onGoBackLink() end,
separator = true,
},
{
text = _("Tap to follow links"),
checked_func = isTapToFollowLinksOn,
@ -141,6 +135,11 @@ function ReaderLink:addToMainMenu(menu_items)
},
}
}
menu_items.go_to_previous_location = {
text = _("Go back to previous location"),
enabled_func = function() return #self.location_stack > 0 end,
callback = function() self:onGoBackLink() end,
}
end
--- Gets link from gesture.

@ -16,6 +16,7 @@ local order = {
"go_to",
"skim_to",
"----------------------------",
"go_to_previous_location",
"follow_links",
},
typeset = {

Loading…
Cancel
Save