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

This commit is contained in:
Frans de Jonge
2018-01-17 20:28:33 +01:00
committed by GitHub
parent 6e87735b79
commit acacd7a7f8
2 changed files with 6 additions and 6 deletions

View File

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