From 47ab7685aa683a538bc7906d9a2f89fb6e3e4080 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Fern=C3=A1ndez?= <975883+pazos@users.noreply.github.com> Date: Wed, 6 Nov 2024 16:18:12 +0100 Subject: [PATCH] calibre: remove json chooser UI leftover (#12715) After #12714 --- plugins/calibre.koplugin/main.lua | 51 ------------------------------- 1 file changed, 51 deletions(-) diff --git a/plugins/calibre.koplugin/main.lua b/plugins/calibre.koplugin/main.lua index 284206283..dd5b82f9d 100644 --- a/plugins/calibre.koplugin/main.lua +++ b/plugins/calibre.koplugin/main.lua @@ -118,11 +118,6 @@ function Calibre:addToMainMenu(menu_items) keep_menu_open = true, sub_item_table = self:getWirelessMenuTable(), }, - { - text = _("JSON parser"), - keep_menu_open = true, - sub_item_table = self:getParserMenuTable(), - }, } } -- insert the metadata search @@ -419,50 +414,4 @@ function Calibre:getWirelessMenuTable() return t end -function Calibre:getParserMenuTable() - return { - { - text = _("Automatic"), - help_text = _("The program will decide based on the size of the JSON file. Recommended"), - checked_func = function() - return G_reader_settings:hasNot("calibre_json_parser") - end, - callback = function() - G_reader_settings:delSetting("calibre_json_parser") - end, - }, - { - text = _("Fast"), - help_text = _("Faster parsing, but may not take too kindly to malformed input files"), - checked_func = function() - return G_reader_settings:readSetting("calibre_json_parser") == "fast" - end, - callback = function() - G_reader_settings:saveSetting("calibre_json_parser", "fast") - end, - }, - { - text = _("Safe"), - help_text = _("Slower, but safer. Useful if you're experiencing problems with the other modes"), - checked_func = function() - return G_reader_settings:readSetting("calibre_json_parser") == "safe" - end, - callback = function() - G_reader_settings:saveSetting("calibre_json_parser", "safe") - end, - }, - { - text = _("Legacy"), - help_text = _("Fast, but requires more RAM, only recommended on modest library sizes (or beefier devices)"), - checked_func = function() - return G_reader_settings:readSetting("calibre_json_parser") == "legacy" - end, - callback = function() - G_reader_settings:saveSetting("calibre_json_parser", "legacy") - end, - }, - } -end - - return Calibre