mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[UX] Move "Go back to previous location" up one menu level (#3615)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user