From 941df475b6cb2001f31399f5da4b54ab1e767b61 Mon Sep 17 00:00:00 2001 From: onde2rock Date: Sat, 21 Apr 2018 22:02:38 +0200 Subject: [PATCH] [Menusorter] Ignore warning for the plus_menu. (#3903) The plus_menu break the assumption of the menusorter about a tab beeing always present. See : https://github.com/koreader/koreader/pull/3844#issuecomment-383092219 --- frontend/ui/menusorter.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/ui/menusorter.lua b/frontend/ui/menusorter.lua index 8fc0110ce..b7066d3f7 100644 --- a/frontend/ui/menusorter.lua +++ b/frontend/ui/menusorter.lua @@ -98,7 +98,9 @@ function MenuSorter:sort(item_table, order) i = i + 1 end else - if order_id ~= "KOMenu:disabled" then + if order_id ~= "KOMenu:disabled" and order_id ~="plus_menu" then + --"plus_menu" break an assumption of the menu_sorter, but it's ok, so ignore it. + --See : https://github.com/koreader/koreader/pull/3844#issuecomment-383092219 logger.warn("menu id not found:", order_id) end end