From 41b885f073d950539e89f66c5a3b1daa97e630de Mon Sep 17 00:00:00 2001 From: poire-z Date: Thu, 3 Jan 2019 21:23:20 +0100 Subject: [PATCH] [UX] Adds "Enable back history" menu item (#4443) For a hidden setting already present, and used in /apps/reader/modules/readerback.lua Only shown, as the whole Navigation> submenu, on devices with keys. --- frontend/ui/elements/common_settings_menu_table.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/frontend/ui/elements/common_settings_menu_table.lua b/frontend/ui/elements/common_settings_menu_table.lua index c2be27d2a..289353af3 100644 --- a/frontend/ui/elements/common_settings_menu_table.lua +++ b/frontend/ui/elements/common_settings_menu_table.lua @@ -190,6 +190,15 @@ if Device:hasKeys() then }, }, }, + { + text = _("Enable back history"), + checked_func = function() + return G_reader_settings:nilOrTrue("enable_back_history") + end, + callback = function() + G_reader_settings:flipNilOrTrue("enable_back_history") + end, + }, } } end